mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
Merge remote-tracking branch 'origin/devel' into path2rs
This commit is contained in:
commit
fb18d57f56
2 changed files with 3 additions and 2 deletions
|
@ -121,10 +121,11 @@ SECTION .ktext
|
|||
align 4
|
||||
start64:
|
||||
; reset registers to kill any stale realmode selectors
|
||||
xor eax, eax
|
||||
mov eax, 0x10
|
||||
mov ds, eax
|
||||
mov ss, eax
|
||||
mov es, eax
|
||||
xor eax, eax
|
||||
mov fs, eax
|
||||
mov gs, eax
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ void gdt_install(void)
|
|||
task_state_segments[i].ist3 = (size_t) stack_table[i] + (3 /*IST number */ - 1) * KERNEL_STACK_SIZE - 0x10;
|
||||
task_state_segments[i].ist4 = (size_t) stack_table[i] + (4 /*IST number */ - 1) * KERNEL_STACK_SIZE - 0x10;
|
||||
|
||||
gdt_set_gate(num+i*2, (unsigned long) (task_state_segments+i), sizeof(tss_t)-1,
|
||||
gdt_set_gate(num+i*2, (unsigned long) (task_state_segments+i), sizeof(tss_t),
|
||||
GDT_FLAG_PRESENT | GDT_FLAG_TSS | GDT_FLAG_RING0, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue