Changeset 79f1f38f in mainline for arch/ia32/src/cpu/cpu.c
- Timestamp:
- 2005-05-09T00:35:09Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9db5b66
- Parents:
- 9c926f3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/cpu/cpu.c
r9c926f3 r79f1f38f 62 62 }; 63 63 64 void set_TS_flag(void) 65 { 66 asm 67 ( 68 "mov %%cr0,%%eax;" 69 "or $8,%%eax;" 70 "mov %%eax,%%cr0;" 71 : 72 : 73 :"%eax" 74 ); 75 } 76 77 void reset_TS_flag(void) 78 { 79 asm 80 ( 81 "mov %%cr0,%%eax;" 82 "and $0xffFFffF7,%%eax;" 83 "mov %%eax,%%cr0;" 84 : 85 : 86 :"%eax" 87 ); 88 } 89 90 91 64 92 void cpu_arch_init(void) 65 93 { 66 94 CPU->arch.tss = tss_p; 95 CPU->arch.fpu_owner=NULL; 67 96 } 68 97
Note:
See TracChangeset
for help on using the changeset viewer.