Changeset 586cd56 in mainline
- Timestamp:
- 2009-08-08T10:29:36Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8688a6e
- Parents:
- 9732e98
- Location:
- kernel/arch/amd64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/cpu.h
r9732e98 r586cd56 36 36 #define KERN_amd64_CPU_H_ 37 37 38 #define RFLAGS_IF (1 << 9) 39 #define RFLAGS_DF (1 << 10) 40 #define RFLAGS_RF (1 << 16) 38 #define RFLAGS_CF (1 << 0) 39 #define RFLAGS_PF (1 << 2) 40 #define RFLAGS_AF (1 << 4) 41 #define RFLAGS_ZF (1 << 6) 42 #define RFLAGS_SF (1 << 7) 43 #define RFLAGS_TF (1 << 8) 44 #define RFLAGS_IF (1 << 9) 45 #define RFLAGS_DF (1 << 10) 46 #define RFLAGS_OF (1 << 11) 47 #define RFLAGS_RF (1 << 16) 41 48 42 49 #define EFER_MSR_NUM 0xc0000080 -
kernel/arch/amd64/src/userspace.c
r9732e98 r586cd56 34 34 35 35 #include <userspace.h> 36 #include <arch/cpu.h> 36 37 #include <arch/pm.h> 37 38 #include <arch/types.h> … … 50 51 ipl_t ipl = interrupts_disable(); 51 52 52 /* Clear CF, PF, AF, ZF, SF, DF, OF */53 ipl &= ~(0xcd4);53 ipl &= ~(RFLAGS_CF | RFLAGS_PF | RFLAGS_AF | RFLAGS_ZF | RFLAGS_SF | 54 RFLAGS_DF | RFLAGS_OF); 54 55 55 56 asm volatile (
Note:
See TracChangeset
for help on using the changeset viewer.