Changeset 53ad43c in mainline for kernel/arch/amd64/include/arch/mm/page.h
- Timestamp:
- 2018-03-08T18:54:30Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5ef16903
- Parents:
- e0a4686
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/arch/mm/page.h
re0a4686 r53ad43c 44 44 #ifdef MEMORY_MODEL_kernel 45 45 46 #ifndef __AS M__46 #ifndef __ASSEMBLER__ 47 47 48 48 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffffffff80000000)) 49 49 #define PA2KA(x) (((uintptr_t) (x)) + UINT64_C(0xffffffff80000000)) 50 50 51 #else /* __AS M__ */51 #else /* __ASSEMBLER__ */ 52 52 53 53 #define KA2PA(x) ((x) - 0xffffffff80000000) 54 54 #define PA2KA(x) ((x) + 0xffffffff80000000) 55 55 56 #endif /* __AS M__ */56 #endif /* __ASSEMBLER__ */ 57 57 58 58 #endif /* MEMORY_MODEL_kernel */ … … 60 60 #ifdef MEMORY_MODEL_large 61 61 62 #ifndef __AS M__62 #ifndef __ASSEMBLER__ 63 63 64 64 #define KA2PA(x) (((uintptr_t) (x)) - UINT64_C(0xffff800000000000)) 65 65 #define PA2KA(x) (((uintptr_t) (x)) + UINT64_C(0xffff800000000000)) 66 66 67 #else /* __AS M__ */67 #else /* __ASSEMBLER__ */ 68 68 69 69 #define KA2PA(x) ((x) - 0xffff800000000000) 70 70 #define PA2KA(x) ((x) + 0xffff800000000000) 71 71 72 #endif /* __AS M__ */72 #endif /* __ASSEMBLER__ */ 73 73 74 74 #endif /* MEMORY_MODEL_large */ … … 162 162 ((p)->no_execute == 0) 163 163 164 #ifndef __AS M__164 #ifndef __ASSEMBLER__ 165 165 166 166 #include <mm/mm.h> … … 255 255 extern void page_fault(unsigned int, istate_t *); 256 256 257 #endif /* __AS M__ */257 #endif /* __ASSEMBLER__ */ 258 258 259 259 #endif
Note:
See TracChangeset
for help on using the changeset viewer.