Deleted Added
sdiff udiff text old ( 9164:d112473185ea ) new ( 9232:3bb99fab80d4 )
full compact
1# Copyright (c) 2010-2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 505 unchanged lines hidden (view full) ---

514def makeLinuxX86System(mem_mode, numCPUs = 1, mdesc = None, Ruby = False):
515 self = LinuxX86System()
516
517 # Build up the x86 system and then specialize it for Linux
518 makeX86System(mem_mode, numCPUs, mdesc, self, Ruby)
519
520 # We assume below that there's at least 1MB of memory. We'll require 2
521 # just to avoid corner cases.
522 assert(self.physmem.range.second.getValue() >= 0x200000)
523
524 self.e820_table.entries = \
525 [
526 # Mark the first megabyte of memory as reserved
527 X86E820Entry(addr = 0, size = '1MB', range_type = 2),
528 # Mark the rest as available
529 X86E820Entry(addr = 0x100000,
530 size = '%dB' % (self.physmem.range.second - 0x100000 + 1),
531 range_type = 1)
532 ]
533
534 # Command line
535 self.boot_osflags = 'earlyprintk=ttyS0 console=ttyS0 lpj=7999923 ' + \
536 'root=/dev/hda1'
537 return self
538

--- 23 unchanged lines hidden ---