Changes in kernel/arch/amd64/include/arch/mm/page.h [6ecf5b8:4bf0926e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/arch/mm/page.h
r6ecf5b8 r4bf0926e 42 42 #define PAGE_SIZE FRAME_SIZE 43 43 44 #ifdef MEMORY_MODEL_kernel 45 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_large 61 44 62 #ifndef __ASM__ 45 63 … … 53 71 54 72 #endif /* __ASM__ */ 73 74 #endif /* MEMORY_MODEL_large */ 55 75 56 76 /* Number of entries in each level. */ … … 61 81 62 82 /* Page table sizes for each level. */ 63 #define PTL0_ SIZE_ARCH ONE_FRAME64 #define PTL1_ SIZE_ARCH ONE_FRAME65 #define PTL2_ SIZE_ARCH ONE_FRAME66 #define PTL3_ SIZE_ARCH ONE_FRAME83 #define PTL0_FRAMES_ARCH 1 84 #define PTL1_FRAMES_ARCH 1 85 #define PTL2_FRAMES_ARCH 1 86 #define PTL3_FRAMES_ARCH 1 67 87 68 88 /* Macros calculating indices into page tables in each level. */
Note:
See TracChangeset
for help on using the changeset viewer.