Changeset d9f81af3 in mainline for arch/amd64/include/asm.h
- Timestamp:
- 2005-09-01T01:08:51Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 75d5721
- Parents:
- 470c468
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/asm.h
r470c468 rd9f81af3 140 140 static inline __u32 read_cr2(void) { __u64 v; __asm__ volatile ("movq %%cr2,%0" : "=r" (v)); return v; } 141 141 142 /** Write CR3 143 * 144 * Write value to CR3. 145 * 146 * @param v Value to be written. 147 */ 148 static inline void write_cr3(__u64 v) { __asm__ volatile ("movq %0,%%cr3\n" : : "r" (v)); } 149 150 /** Read CR3 151 * 152 * Return value in CR3 153 * 154 * @return Value read. 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 164 142 165 143 166 extern size_t interrupt_handler_size;
Note:
See TracChangeset
for help on using the changeset viewer.