Changeset b3f8fb7 in mainline for kernel/arch/amd64/include/mm/page.h
- Timestamp:
- 2007-01-28T13:25:49Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e8c1a5
- Parents:
- 1ba41c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/mm/page.h
r1ba41c5 rb3f8fb7 58 58 59 59 #ifndef __ASM__ 60 # include <mm/page.h>61 # 62 # endif60 # include <mm/mm.h> 61 # include <arch/types.h> 62 # include <arch/interrupt.h> 63 63 64 #ifndef __ASM__65 64 static inline uintptr_t ka2pa(uintptr_t x) 66 65 { … … 70 69 return x - 0xffff800000000000; 71 70 } 72 # define KA2PA(x) ka2pa((uintptr_t)x) 73 # define PA2KA_CODE(x) (((uintptr_t) (x)) + 0xffffffff80000000) 74 # define PA2KA(x) (((uintptr_t) (x)) + 0xffff800000000000) 71 72 # define KA2PA(x) ka2pa((uintptr_t)x) 73 # define PA2KA_CODE(x) (((uintptr_t) (x)) + 0xffffffff80000000) 74 # define PA2KA(x) (((uintptr_t) (x)) + 0xffff800000000000) 75 75 #else 76 # 77 # 76 # define KA2PA(x) ((x) - 0xffffffff80000000) 77 # define PA2KA(x) ((x) + 0xffffffff80000000) 78 78 #endif 79 79 … … 134 134 #define PFERR_CODE_ID (1<<4) 135 135 136 /** Page Table Entry. */137 struct page_specifier {138 unsigned present : 1;139 unsigned writeable : 1;140 unsigned uaccessible : 1;141 unsigned page_write_through : 1;142 unsigned page_cache_disable : 1;143 unsigned accessed : 1;144 unsigned dirty : 1;145 unsigned unused: 1;146 unsigned global : 1;147 unsigned soft_valid : 1; /**< Valid content even if present bit is cleared. */148 unsigned avl : 2;149 unsigned addr_12_31 : 30;150 unsigned addr_32_51 : 21;151 unsigned no_execute : 1;152 } __attribute__ ((packed));153 154 136 static inline int get_pt_flags(pte_t *pt, index_t i) 155 137 {
Note:
See TracChangeset
for help on using the changeset viewer.