38 #ifndef __ARCH_X86_X86TRAITS_HH__ 39 #define __ARCH_X86_X86TRAITS_HH__ 83 return PhysAddrPrefixIO | port;
89 return PhysAddrPrefixPciConfig |
addr;
95 assert(addr < (1 << 12));
96 return PhysAddrPrefixLocalAPIC | (
id * (1 << 12)) |
addr;
102 assert(addr < PhysAddrAPICRangeSize);
107 #endif //__ARCH_X86_X86TRAITS_HH__ const Addr PhysAddrPrefixPciConfig
const Addr IntAddrPrefixCPUID
const Addr IntAddrPrefixMask
const Addr PhysAddrPrefixLocalAPIC
const Addr PhysAddrPrefixInterrupts
const Addr PhysAddrAPICRangeSize
static Addr x86InterruptAddress(const uint8_t id, const uint16_t addr)
const Addr IntAddrPrefixMSR
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
#define ULL(N)
uint64_t constant
const int NumImplicitIntRegs
const int NumMicroIntRegs
const Addr IntAddrPrefixIO
static Addr x86IOAddress(const uint32_t port)
This is exposed globally, independent of the ISA.
static Addr x86PciConfigAddress(const uint32_t addr)
const Addr PhysAddrPrefixIO
static Addr x86LocalAPICAddress(const uint8_t id, const uint16_t addr)