FSConfig.py (7014:441317194b08) | FSConfig.py (7069:edde97a6ea7c) |
---|---|
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 --- 301 unchanged lines hidden (view full) --- 310def makeLinuxX86System(mem_mode, numCPUs = 1, mdesc = None): 311 self = LinuxX86System() 312 313 # Build up a generic x86 system and then specialize it for Linux 314 makeX86System(mem_mode, numCPUs, mdesc, self) 315 316 # We assume below that there's at least 1MB of memory. We'll require 2 317 # just to avoid corner cases. | 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 --- 301 unchanged lines hidden (view full) --- 310def makeLinuxX86System(mem_mode, numCPUs = 1, mdesc = None): 311 self = LinuxX86System() 312 313 # Build up a generic x86 system and then specialize it for Linux 314 makeX86System(mem_mode, numCPUs, mdesc, self) 315 316 # We assume below that there's at least 1MB of memory. We'll require 2 317 # just to avoid corner cases. |
318 assert(self.physmem.range.second >= 0x200000) | 318 assert(self.physmem.range.second.getValue() >= 0x200000) |
319 320 # Mark the first megabyte of memory as reserved 321 self.e820_table.entries.append(X86E820Entry( 322 addr = 0, 323 size = '1MB', 324 range_type = 2)) 325 326 # Mark the rest as available --- 94 unchanged lines hidden --- | 319 320 # Mark the first megabyte of memory as reserved 321 self.e820_table.entries.append(X86E820Entry( 322 addr = 0, 323 size = '1MB', 324 range_type = 2)) 325 326 # Mark the rest as available --- 94 unchanged lines hidden --- |