FSConfig.py (7905:00ad807ed2ca) | FSConfig.py (7914:eee5bb0fb8ea) |
---|---|
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, numCPUs = 1, mdesc = None, Ruby = False): | 408def makeLinuxX86System(mem_mode, options, mdesc = None, Ruby = False): 409 numCPUs = options.num_cpus |
409 self = LinuxX86System() 410 411 # Build up the x86 system and then specialize it for Linux 412 makeX86System(mem_mode, numCPUs, mdesc, self, Ruby) 413 414 # We assume below that there's at least 1MB of memory. We'll require 2 415 # just to avoid corner cases. 416 assert(self.physmem.range.second.getValue() >= 0x200000) 417 | 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 |
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 |
|
418 # Mark the first megabyte of memory as reserved 419 self.e820_table.entries.append(X86E820Entry( 420 addr = 0, 421 size = '1MB', 422 range_type = 2)) 423 424 # Mark the rest as available 425 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 --- |