Changes in kernel/arch/amd64/include/arch/mm/page.h [4bf0926e:6ecf5b8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/arch/mm/page.h
r4bf0926e r6ecf5b8 42 42 #define PAGE_SIZE FRAME_SIZE 43 43 44 #ifdef MEMORY_MODEL_kernel45 46 #ifndef __ASM__47 48 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffffffff80000000))49 #define PA2KA(x) (((uintptr_t) (x)) + UINT64_C(0xffffffff80000000))50 51 #else /* __ASM__ */52 53 #define KA2PA(x) ((x) - 0xffffffff80000000)54 #define PA2KA(x) ((x) + 0xffffffff80000000)55 56 #endif /* __ASM__ */57 58 #endif /* MEMORY_MODEL_kernel */59 60 #ifdef MEMORY_MODEL_large61 62 44 #ifndef __ASM__ 63 45 … … 71 53 72 54 #endif /* __ASM__ */ 73 74 #endif /* MEMORY_MODEL_large */75 55 76 56 /* Number of entries in each level. */ … … 81 61 82 62 /* Page table sizes for each level. */ 83 #define PTL0_ FRAMES_ARCH 184 #define PTL1_ FRAMES_ARCH 185 #define PTL2_ FRAMES_ARCH 186 #define PTL3_ FRAMES_ARCH 163 #define PTL0_SIZE_ARCH ONE_FRAME 64 #define PTL1_SIZE_ARCH ONE_FRAME 65 #define PTL2_SIZE_ARCH ONE_FRAME 66 #define PTL3_SIZE_ARCH ONE_FRAME 87 67 88 68 /* Macros calculating indices into page tables in each level. */
Note:
See TracChangeset
for help on using the changeset viewer.