20#define kPageMax (0x200)
24#define kPageAlign (0x08)
28#define kPageSize (0x1000)
32#define kAlign __BIGGEST_ALIGNMENT__
46 enum class ControlRegisterBits {
47 kProtectedModeEnable = 0,
48 kMonitorCoProcessor = 1,
55 kNotWriteThrough = 29,
60 inline UInt8 control_register_cast(ControlRegisterBits reg) {
61 return static_cast<UInt8>(reg);
81 UInt64 PhysicalAddress : 40;
EXTERN_C void hal_flush_tlb()
Flush TLB.
Definition HalVirtualMemory.cc:44
Definition HalDescriptorLoader.cc:12
Hardware Abstraction Layer.
Definition ArchKit.h:62
auto mm_free_bitmap(VoidPtr ptr) -> Bool
Free Bitmap, and mark it as absent.
Definition BitMapMgr.cc:199
auto mm_alloc_bitmap(Boolean wr, Boolean user, SizeT size, Bool is_page, SizeT pad) -> VoidPtr
Allocate a new page to be used by the OS.
Definition BitMapMgr.cc:181
UPS inline definitions.
Definition Device.h:12
__SIZE_TYPE__ SizeT
Definition Config.h:60
__UINT8_TYPE__ UInt8
Definition Config.h:55
void * VoidPtr
Definition Config.h:33
bool Boolean
Definition Config.h:49
__UINT64_TYPE__ UInt64
Definition Config.h:48
bool Bool
Definition Config.h:50