system.cc (7629:0f0c231e3e97) system.cc (7704:b5e6461ea242)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

55using namespace LittleEndianGuest;
56using namespace X86ISA;
57
58X86System::X86System(Params *p) :
59 System(p), smbiosTable(p->smbios_table),
60 mpFloatingPointer(p->intel_mp_pointer),
61 mpConfigTable(p->intel_mp_table),
62 rsdp(p->acpi_description_table_pointer)
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

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

55using namespace LittleEndianGuest;
56using namespace X86ISA;
57
58X86System::X86System(Params *p) :
59 System(p), smbiosTable(p->smbios_table),
60 mpFloatingPointer(p->intel_mp_pointer),
61 mpConfigTable(p->intel_mp_table),
62 rsdp(p->acpi_description_table_pointer)
63{}
63{
64 if (kernel->getArch() == ObjectFile::I386)
65 fatal("Loading a 32 bit x86 kernel is not supported.\n");
66}
64
65static void
66installSegDesc(ThreadContext *tc, SegmentRegIndex seg,
67 SegDescriptor desc, bool longmode)
68{
69 uint64_t base = desc.baseLow + (desc.baseHigh << 24);
70 bool honorBase = !longmode || seg == SEGMENT_REG_FS ||
71 seg == SEGMENT_REG_GS ||

--- 340 unchanged lines hidden ---
67
68static void
69installSegDesc(ThreadContext *tc, SegmentRegIndex seg,
70 SegDescriptor desc, bool longmode)
71{
72 uint64_t base = desc.baseLow + (desc.baseHigh << 24);
73 bool honorBase = !longmode || seg == SEGMENT_REG_FS ||
74 seg == SEGMENT_REG_GS ||

--- 340 unchanged lines hidden ---