FSConfig.py (5416:26aa7cf1be28) | FSConfig.py (5450:25e395a87745) |
---|---|
1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 154 unchanged lines hidden (view full) --- 163 self = LinuxX86System() 164 if not mdesc: 165 # generic system 166 mdesc = SysConfig() 167 self.readfile = mdesc.script() 168 169 # Physical memory 170 self.membus = Bus(bus_id=1) | 1# Copyright (c) 2006-2008 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 154 unchanged lines hidden (view full) --- 163 self = LinuxX86System() 164 if not mdesc: 165 # generic system 166 mdesc = SysConfig() 167 self.readfile = mdesc.script() 168 169 # Physical memory 170 self.membus = Bus(bus_id=1) |
171 self.physmem = PhysicalMemory(range = AddrRange('4GB')) #range = AddrRange(mdesc.mem())) | 171 self.physmem = PhysicalMemory(range = AddrRange(mdesc.mem())) |
172 self.physmem.port = self.membus.port 173 | 172 self.physmem.port = self.membus.port 173 |
174 # We assume below that there's at least 1MB of memory. We'll require 2 175 # just to avoid corner cases. 176 assert(self.physmem.range.second >= 0x200000) 177 178 # Mark the first megabyte of memory as reserved 179 self.e820_table.entries.append(X86E820Entry( 180 addr = 0, 181 size = '1MB', 182 range_type = 2)) 183 184 # Mark the rest as available 185 self.e820_table.entries.append(X86E820Entry( 186 addr = 0x100000, 187 size = '%dB' % (self.physmem.range.second - 0x100000 - 1), 188 range_type = 1)) 189 |
|
174 # North Bridge 175 self.iobus = Bus(bus_id=0) 176 self.bridge = Bridge(delay='50ns', nack_delay='4ns') 177 self.bridge.side_a = self.iobus.port 178 self.bridge.side_b = self.membus.port 179 180 # Command line 181 self.boot_osflags = 'earlyprintk=ttyS0 console=ttyS0 lpj=9608015' --- 93 unchanged lines hidden --- | 190 # North Bridge 191 self.iobus = Bus(bus_id=0) 192 self.bridge = Bridge(delay='50ns', nack_delay='4ns') 193 self.bridge.side_a = self.iobus.port 194 self.bridge.side_b = self.membus.port 195 196 # Command line 197 self.boot_osflags = 'earlyprintk=ttyS0 console=ttyS0 lpj=9608015' --- 93 unchanged lines hidden --- |