Changeset 4bf0926e in mainline for kernel/arch/amd64/include/arch/mm/page.h
- Timestamp:
- 2016-09-01T22:14:30Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c2d54a
- Parents:
- 8b6aa39
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/arch/mm/page.h
r8b6aa39 r4bf0926e 42 42 #define PAGE_SIZE FRAME_SIZE 43 43 44 #ifdef MEMORY_MODEL_kernel 45 44 46 #ifndef __ASM__ 45 47 … … 53 55 54 56 #endif /* __ASM__ */ 57 58 #endif /* MEMORY_MODEL_kernel */ 59 60 #ifdef MEMORY_MODEL_large 61 62 #ifndef __ASM__ 63 64 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffff800000000000)) 65 #define PA2KA(x) (((uintptr_t) (x)) + UINT64_C(0xffff800000000000)) 66 67 #else /* __ASM__ */ 68 69 #define KA2PA(x) ((x) - 0xffff800000000000) 70 #define PA2KA(x) ((x) + 0xffff800000000000) 71 72 #endif /* __ASM__ */ 73 74 #endif /* MEMORY_MODEL_large */ 55 75 56 76 /* Number of entries in each level. */
Note:
See TracChangeset
for help on using the changeset viewer.