Changeset e3b9572 in mainline for arch/amd64/include
- Timestamp:
- 2005-09-01T09:42:10Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1dde3b61
- Parents:
- c842f04
- Location:
- arch/amd64/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/asm.h
rc842f04 re3b9572 37 37 void asm_fake_loop(__u32 t); 38 38 39 40 39 /* TODO: implement the real stuff */ 41 40 static inline __address get_stack_base(void) … … 45 44 46 45 static inline void cpu_sleep(void) { __asm__("hlt"); }; 46 static inline void cpu_halt(void) { __asm__("hlt"); }; 47 47 48 48 … … 138 138 * @return Value read. 139 139 */ 140 static inline __u 32read_cr2(void) { __u64 v; __asm__ volatile ("movq %%cr2,%0" : "=r" (v)); return v; }140 static inline __u64 read_cr2(void) { __u64 v; __asm__ volatile ("movq %%cr2,%0" : "=r" (v)); return v; } 141 141 142 142 /** Write CR3 … … 154 154 * @return Value read. 155 155 */ 156 static inline __u32 read_cr3(void) { __u64 v; __asm__ volatile ("movq %%cr3,%0" : "=r" (v)); return v; } 157 158 /** Set priority level low 159 * 160 * Enable interrupts and return previous 161 * value of EFLAGS. 162 */ 163 156 static inline __u64 read_cr3(void) { __u64 v; __asm__ volatile ("movq %%cr3,%0" : "=r" (v)); return v; } 164 157 165 158 -
arch/amd64/include/pm.h
rc842f04 re3b9572 87 87 unsigned base_16_23: 8; 88 88 unsigned type: 4; 89 unsigned reserve1: 1;89 unsigned : 1; 90 90 unsigned dpl : 2; 91 91 unsigned present : 1; 92 92 unsigned limit_16_19: 4; 93 93 unsigned available: 1; 94 unsigned reserve2: 2;94 unsigned : 2; 95 95 unsigned granularity : 1; 96 96 unsigned base_24_31: 8; 97 97 unsigned base_32_63 : 32; 98 unsigned reserve3: 32;98 unsigned : 32; 99 99 } __attribute__ ((packed)); 100 100 … … 108 108 unsigned present : 1; 109 109 unsigned offset_16_31: 16; 110 unsigned offset_32_63: 16;111 unsigned reserved: 32;110 unsigned offset_32_63: 32; 111 unsigned : 32; 112 112 } __attribute__ ((packed)); 113 113
Note:
See TracChangeset
for help on using the changeset viewer.
