system.hh (11800:54436a1784dc) system.hh (12458:8de44b407db4)
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

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

59 class ConfigTable;
60 }
61
62 void installSegDesc(ThreadContext *tc, SegmentRegIndex seg,
63 SegDescriptor desc, bool longmode);
64
65 /* memory mappings for KVMCpu in SE mode */
66 const uint64_t syscallCodeVirtAddr = 0xffff800000000000;
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

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

59 class ConfigTable;
60 }
61
62 void installSegDesc(ThreadContext *tc, SegmentRegIndex seg,
63 SegDescriptor desc, bool longmode);
64
65 /* memory mappings for KVMCpu in SE mode */
66 const uint64_t syscallCodeVirtAddr = 0xffff800000000000;
67 const uint64_t syscallCodePhysAddr = 0x60000;
68 const uint64_t GDTVirtAddr = 0xffff800000001000;
67 const uint64_t GDTVirtAddr = 0xffff800000001000;
69 const uint64_t GDTPhysAddr = 0x61000;
70 const uint64_t IDTVirtAddr = 0xffff800000002000;
68 const uint64_t IDTVirtAddr = 0xffff800000002000;
71 const uint64_t IDTPhysAddr = 0x62000;
72 const uint64_t TSSVirtAddr = 0xffff800000003000;
73 const uint64_t TSSPhysAddr = 0x63000;
74 const uint64_t ISTVirtAddr = 0xffff800000004000;
69 const uint64_t TSSVirtAddr = 0xffff800000003000;
70 const uint64_t TSSPhysAddr = 0x63000;
71 const uint64_t ISTVirtAddr = 0xffff800000004000;
75 const uint64_t ISTPhysAddr = 0x64000;
76 const uint64_t PFHandlerVirtAddr = 0xffff800000005000;
72 const uint64_t PFHandlerVirtAddr = 0xffff800000005000;
77 const uint64_t PFHandlerPhysAddr = 0x65000;
78 const uint64_t MMIORegionVirtAddr = 0xffffc90000000000;
79 const uint64_t MMIORegionPhysAddr = 0xffff0000;
73 const uint64_t MMIORegionVirtAddr = 0xffffc90000000000;
74 const uint64_t MMIORegionPhysAddr = 0xffff0000;
80
81 const uint64_t pageTablePhysAddr = 0x70000;
82}
83
84class X86System : public System
85{
86 public:
87 typedef X86SystemParams Params;
88 X86System(Params *p);
89 ~X86System();

--- 32 unchanged lines hidden ---
75}
76
77class X86System : public System
78{
79 public:
80 typedef X86SystemParams Params;
81 X86System(Params *p);
82 ~X86System();

--- 32 unchanged lines hidden ---