Changeset e7b7be3f in mainline for kernel/arch/amd64/src
- Timestamp:
- 2007-01-22T13:10:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0f3fc9b
- Parents:
- 62c63fc
- Location:
- kernel/arch/amd64/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/cpu/cpu.c
r62c63fc re7b7be3f 77 77 void cpu_setup_fpu(void) 78 78 { 79 __asm__volatile (79 asm volatile ( 80 80 "movq %%cr0, %%rax;" 81 81 "btsq $1, %%rax;" /* cr0.mp */ … … 100 100 void fpu_disable(void) 101 101 { 102 __asm__volatile (102 asm volatile ( 103 103 "mov %%cr0,%%rax;" 104 104 "bts $3,%%rax;" … … 112 112 void fpu_enable(void) 113 113 { 114 __asm__volatile (114 asm volatile ( 115 115 "mov %%cr0,%%rax;" 116 116 "btr $3,%%rax;" -
kernel/arch/amd64/src/fpu_context.c
r62c63fc re7b7be3f 41 41 void fpu_context_save(fpu_context_t *fctx) 42 42 { 43 __asm__volatile (43 asm volatile ( 44 44 "fxsave %0" 45 45 : "=m"(*fctx) … … 50 50 void fpu_context_restore(fpu_context_t *fctx) 51 51 { 52 __asm__volatile (52 asm volatile ( 53 53 "fxrstor %0" 54 54 : "=m"(*fctx) … … 59 59 { 60 60 /* TODO: Zero all SSE, MMX etc. registers */ 61 __asm__volatile (61 asm volatile ( 62 62 "fninit;" 63 63 ); -
kernel/arch/amd64/src/userspace.c
r62c63fc re7b7be3f 55 55 ipl &= ~(0xcd4); 56 56 57 __asm__volatile (""57 asm volatile ("" 58 58 "pushq %0\n" 59 59 "pushq %1\n"
Note:
See TracChangeset
for help on using the changeset viewer.