Changeset 60133d0 in mainline for kernel/arch/ia32/include/asm.h
- Timestamp:
- 2007-05-31T23:30:32Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ff3a34b
- Parents:
- 1e847fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/asm.h
r1e847fb r60133d0 61 61 { 62 62 asm volatile ("hlt\n"); 63 } ;63 } 64 64 65 65 static inline void cpu_sleep(void) 66 66 { 67 67 asm volatile ("hlt\n"); 68 } ;68 } 69 69 70 70 #define GEN_READ_REG(reg) static inline unative_t read_ ##reg (void) \ … … 80 80 } 81 81 82 GEN_READ_REG(cr0) ;83 GEN_READ_REG(cr2) ;84 GEN_READ_REG(cr3) ;85 GEN_WRITE_REG(cr3) ;86 87 GEN_READ_REG(dr0) ;88 GEN_READ_REG(dr1) ;89 GEN_READ_REG(dr2) ;90 GEN_READ_REG(dr3) ;91 GEN_READ_REG(dr6) ;92 GEN_READ_REG(dr7) ;93 94 GEN_WRITE_REG(dr0) ;95 GEN_WRITE_REG(dr1) ;96 GEN_WRITE_REG(dr2) ;97 GEN_WRITE_REG(dr3) ;98 GEN_WRITE_REG(dr6) ;99 GEN_WRITE_REG(dr7) ;82 GEN_READ_REG(cr0) 83 GEN_READ_REG(cr2) 84 GEN_READ_REG(cr3) 85 GEN_WRITE_REG(cr3) 86 87 GEN_READ_REG(dr0) 88 GEN_READ_REG(dr1) 89 GEN_READ_REG(dr2) 90 GEN_READ_REG(dr3) 91 GEN_READ_REG(dr6) 92 GEN_READ_REG(dr7) 93 94 GEN_WRITE_REG(dr0) 95 GEN_WRITE_REG(dr1) 96 GEN_WRITE_REG(dr2) 97 GEN_WRITE_REG(dr3) 98 GEN_WRITE_REG(dr6) 99 GEN_WRITE_REG(dr7) 100 100 101 101 /** Byte to port
Note:
See TracChangeset
for help on using the changeset viewer.