From 84a8b41f4d4c444385e0d7ef058a57af07f0c2e1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 6 Jan 2020 00:06:45 +0100 Subject: Usermode based allocating works a bit now *a bit* --- src/kernel/gdt/gdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/gdt/gdt.c') diff --git a/src/kernel/gdt/gdt.c b/src/kernel/gdt/gdt.c index ea492b6..49d5ce6 100644 --- a/src/kernel/gdt/gdt.c +++ b/src/kernel/gdt/gdt.c @@ -104,7 +104,7 @@ void gdt_install() void tss_write(int32_t num, uint16_t ss0) { uint32_t base = (uint32_t) &tss_entry; - uint32_t limit = base + sizeof(struct tss_entry_struct); + uint32_t limit = base + sizeof(tss_entry); gdt_set_gate(num, base, limit, 0xE9, 0x00); @@ -119,5 +119,5 @@ void tss_write(int32_t num, uint16_t ss0) void tss_flush(void) { tss_entry.esp0 = 4096 + (uint32_t) kmalloc(4096); - asm volatile ("ltr %%ax": : "a" (0x2A)); + asm volatile ("ltr %%ax": : "a" (0x2B)); } \ No newline at end of file -- cgit v1.2.3