Changeset 1433ecda in mainline for kernel/arch/ia64/include/arch/mm/page.h
- Timestamp:
- 2018-04-04T15:42:37Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/include/arch/mm/page.h
r47b2d7e3 r1433ecda 56 56 57 57 #ifdef __ASSEMBLER__ 58 58 #define VRN_KERNEL 7 59 59 #else 60 60 #define VRN_KERNEL 7ULL 61 61 #endif 62 62 … … 97 97 unsigned long long tag : 63; 98 98 unsigned int ti : 1; 99 } __attribute__ 99 } __attribute__((packed)); 100 100 101 101 union vhpt_tag { … … 129 129 /* Word 3 */ 130 130 uint64_t ig3 : 64; 131 } __attribute__ 131 } __attribute__((packed)); 132 132 133 133 struct vhpt_entry_not_present { … … 147 147 /* Word 3 */ 148 148 uint64_t ig3 : 64; 149 } __attribute__ 149 } __attribute__((packed)); 150 150 151 151 typedef union { … … 161 161 unsigned int rid : 24; 162 162 unsigned int : 32; 163 } __attribute__ 163 } __attribute__((packed)); 164 164 165 165 typedef union { … … 175 175 unsigned int : 6; 176 176 unsigned long long base : 49; 177 } __attribute__ 177 } __attribute__((packed)); 178 178 179 179 typedef union pta_register { … … 196 196 197 197 asm volatile ( 198 199 200 198 "thash %[ret] = %[va]\n" 199 : [ret] "=r" (ret) 200 : [va] "r" (va) 201 201 ); 202 202 … … 218 218 219 219 asm volatile ( 220 221 222 220 "ttag %[ret] = %[va]\n" 221 : [ret] "=r" (ret) 222 : [va] "r" (va) 223 223 ); 224 224 … … 239 239 240 240 asm volatile ( 241 242 243 241 "mov %[ret] = rr[%[index]]\n" 242 : [ret] "=r" (ret) 243 : [index] "r" (i << VRN_SHIFT) 244 244 ); 245 245 … … 257 257 258 258 asm volatile ( 259 260 261 259 "mov rr[%[index]] = %[value]\n" 260 :: [index] "r" (i << VRN_SHIFT), 261 [value] "r" (v) 262 262 ); 263 263 } … … 272 272 273 273 asm volatile ( 274 275 274 "mov %[ret] = cr.pta\n" 275 : [ret] "=r" (ret) 276 276 ); 277 277 … … 286 286 { 287 287 asm volatile ( 288 289 288 "mov cr.pta = %[value]\n" 289 :: [value] "r" (v) 290 290 ); 291 291 }
Note:
See TracChangeset
for help on using the changeset viewer.