FSConfig.py (7914:eee5bb0fb8ea) FSConfig.py (7925:6823ef6d7a9f)
1# Copyright (c) 2010 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

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

400 dest_io_apic_id = io_apic.id,
401 dest_io_apic_intin = apicPin)
402 self.intel_mp_table.add_entry(assign_to_apic)
403 assignISAInt(0, 2)
404 assignISAInt(1, 1)
405 for i in range(3, 15):
406 assignISAInt(i, i)
407
1# Copyright (c) 2010 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

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

400 dest_io_apic_id = io_apic.id,
401 dest_io_apic_intin = apicPin)
402 self.intel_mp_table.add_entry(assign_to_apic)
403 assignISAInt(0, 2)
404 assignISAInt(1, 1)
405 for i in range(3, 15):
406 assignISAInt(i, i)
407
408def makeLinuxX86System(mem_mode, options, mdesc = None, Ruby = False):
409 numCPUs = options.num_cpus
408def setWorkCountOptions(system, options):
409 if options.work_item_id != None:
410 system.work_item_id = options.work_item_id
411 if options.work_begin_cpu_id_exit != None:
412 system.work_begin_cpu_id_exit = options.work_begin_cpu_id_exit
413 if options.work_end_exit_count != None:
414 system.work_end_exit_count = options.work_end_exit_count
415 if options.work_end_checkpoint_count != None:
416 system.work_end_ckpt_count = options.work_end_checkpoint_count
417 if options.work_begin_exit_count != None:
418 system.work_begin_exit_count = options.work_begin_exit_count
419 if options.work_begin_checkpoint_count != None:
420 system.work_begin_ckpt_count = options.work_begin_checkpoint_count
421 if options.work_cpus_checkpoint_count != None:
422 system.work_cpus_ckpt_count = options.work_cpus_checkpoint_count
423
424
425def makeLinuxX86System(mem_mode, numCPUs = 1, mdesc = None, Ruby = False):
410 self = LinuxX86System()
411
412 # Build up the x86 system and then specialize it for Linux
413 makeX86System(mem_mode, numCPUs, mdesc, self, Ruby)
414
415 # We assume below that there's at least 1MB of memory. We'll require 2
416 # just to avoid corner cases.
417 assert(self.physmem.range.second.getValue() >= 0x200000)
418
426 self = LinuxX86System()
427
428 # Build up the x86 system and then specialize it for Linux
429 makeX86System(mem_mode, numCPUs, mdesc, self, Ruby)
430
431 # We assume below that there's at least 1MB of memory. We'll require 2
432 # just to avoid corner cases.
433 assert(self.physmem.range.second.getValue() >= 0x200000)
434
419 # set work count options
420 if options.work_item_id != None:
421 self.work_item_id = options.work_item_id
422 if options.work_begin_cpu_id_exit != None:
423 self.work_begin_cpu_id_exit = options.work_begin_cpu_id_exit
424 if options.work_end_exit_count != None:
425 self.work_end_exit_count = options.work_end_exit_count
426 if options.work_end_checkpoint_count != None:
427 self.work_end_ckpt_count = options.work_end_checkpoint_count
428 if options.work_begin_exit_count != None:
429 self.work_begin_exit_count = options.work_begin_exit_count
430 if options.work_begin_checkpoint_count != None:
431 self.work_begin_ckpt_count = options.work_begin_checkpoint_count
432 if options.work_cpus_checkpoint_count != None:
433 self.work_cpus_ckpt_count = options.work_cpus_checkpoint_count
434
435 # Mark the first megabyte of memory as reserved
436 self.e820_table.entries.append(X86E820Entry(
437 addr = 0,
438 size = '1MB',
439 range_type = 2))
440
441 # Mark the rest as available
442 self.e820_table.entries.append(X86E820Entry(

--- 93 unchanged lines hidden ---
435 # Mark the first megabyte of memory as reserved
436 self.e820_table.entries.append(X86E820Entry(
437 addr = 0,
438 size = '1MB',
439 range_type = 2))
440
441 # Mark the rest as available
442 self.e820_table.entries.append(X86E820Entry(

--- 93 unchanged lines hidden ---