Changeset e3b9572 in mainline for arch/amd64/include/asm.h
- 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
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.