Changeset 3156582 in mainline for arch/amd64/src
- Timestamp:
- 2005-09-11T12:48:42Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8e3fb24c
- Parents:
- 8491c48
- Location:
- arch/amd64/src
- Files:
-
- 3 edited
-
asm_utils.S (modified) (3 diffs)
-
fpu_context.c (modified) (2 diffs)
-
pm.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/src/asm_utils.S
r8491c48 r3156582 59 59 .global utext 60 60 utext: 61 xor %ax,%ax;62 mov %ax,%ds;63 mov %ax,%es;64 mov %ax,%fs;65 mov %ax,%gs;66 61 0: 67 62 int $48 … … 178 173 push_all_gpr 179 174 180 # trap_dispatcher(i, stack)181 175 movq $(\i),%rdi # %rdi - first parameter 182 176 movq %rbp, %rsi 183 177 addq $8, %rsi # %rsi - second parameter - original stack 184 call trap_dispatcher 178 call trap_dispatcher # trap_dispatcher(i, stack) 185 179 186 180 # Test if this is interrupt with error word or not … … 217 211 h_start: 218 212 handler 0 IDT_ITEMS 219 # handler 64 128220 # handler 128 192221 # handler 192 256222 213 h_end: 223 214 -
arch/amd64/src/fpu_context.c
r8491c48 r3156582 32 32 #include <cpu.h> 33 33 34 /** Save FPU (mmx, sse) context using fxsave instruction */ 34 35 void fpu_context_save(fpu_context_t *fctx) 35 36 { … … 44 45 } 45 46 47 /** Restore FPU (mmx,sse) context using fxrstor instruction */ 46 48 void fpu_context_restore(fpu_context_t *fctx) 47 49 { -
arch/amd64/src/pm.c
r8491c48 r3156582 92 92 .granularity = 1, 93 93 .base_24_31 = 0 }, 94 /* KTEXT 32-bit protected */94 /* KTEXT 32-bit protected, for protected mode before long mode */ 95 95 { .limit_0_15 = 0xffff, 96 96 .base_0_15 = 0,
Note:
See TracChangeset
for help on using the changeset viewer.
