Changeset a5556b4 in mainline for arch/ia32/include/asm.h
- Timestamp:
- 2005-09-17T21:24:40Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 714675b
- Parents:
- 6799505
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/asm.h
r6799505 ra5556b4 43 43 extern __u32 inl(int port); 44 44 45 extern void outb(int port, __u8 b);46 45 extern void outw(int port, __u16 w); 47 46 extern void outl(int port, __u32 l); … … 84 83 */ 85 84 static inline __u32 read_cr3(void) { __u32 v; __asm__ volatile ("movl %%cr3,%0\n" : "=r" (v)); return v; } 85 86 /** Byte to port 87 * 88 * Output byte to port 89 * 90 * @param port Port to write to 91 * @param val Value to write 92 */ 93 static inline void outb(__u16 port, __u8 val) { __asm__ volatile ("outb %b0, %w1\n" : : "a" (val), "d" (port) ); } 94 86 95 87 96 /** Set priority level low … … 167 176 } 168 177 178 169 179 #endif
Note:
See TracChangeset
for help on using the changeset viewer.