Changeset b9e97fb in mainline for arch/amd64/include/asm.h
- Timestamp:
- 2005-08-31T10:53:34Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8f91729
- Parents:
- 9756131
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/asm.h
r9756131 rb9e97fb 35 35 36 36 void asm_delay_loop(__u32 t); 37 void asm_fake_loop(__u32 t); 38 37 39 38 40 /* TODO: implement the real stuff */ … … 55 57 :"=m"(out) 56 58 :"m"(port) 57 :" dx","al"59 :"%dx","%al" 58 60 ); 59 61 return out; … … 68 70 : 69 71 :"m"( port), "m" (b) 70 :" dx","al"72 :"%dx","%al" 71 73 ); 72 74 } … … 116 118 } 117 119 120 /** Return raw priority level 121 * 122 * Return EFLAFS. 123 */ 124 static inline pri_t cpu_priority_read(void) { 125 pri_t v; 126 __asm__ volatile ( 127 "pushfq\n" 128 "popq %0\n" 129 : "=r" (v) 130 ); 131 return v; 132 } 133 134 extern size_t interrupt_handler_size; 135 extern void interrupt_handlers(void); 118 136 119 137 #endif
Note:
See TracChangeset
for help on using the changeset viewer.