Changeset 3156582 in mainline for arch/amd64
- 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
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/_link.ld.in
r8491c48 r3156582 63 63 _hardcoded_kernel_size = (ktext_end - ktext_start) + (unmapped_ktext_end - unmapped_ktext_start) + (kdata_end - kdata_start) + (unmapped_kdata_end - unmapped_kdata_start); 64 64 65 /* Symbols that need to be accessed both from real mode & long mode */ 66 /* e820*_boot is real mode (pre-above-1MB-move), e820* is */ 67 /* kernel mapped above-1MB-physical copied symbol */ 65 68 e820table_boot = KA2PA(e820table) - BOOT_OFFSET; 66 69 e820counter_boot = KA2PA(e820counter) - BOOT_OFFSET; 70 71 /* real_bootstrap_gdtr is mapped real_bootstrap_gdtr_boot */ 72 /* It is physically outside of kernel area, we have to access */ 73 /* it after modification from long mode for booting */ 74 /* SMP slave processors */ 67 75 real_bootstrap_gdtr = PA2KA(real_bootstrap_gdtr_boot); 68 76 } -
arch/amd64/include/byteorder.h
r8491c48 r3156582 31 31 32 32 /* AMD64 is little-endian */ 33 #define native_le2host(n) n 33 #define native_le2host(n) (n) 34 #define u64_le2host(n) (n) 34 35 35 36 #endif -
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.