diff options
author | Marvin Borner | 2020-01-06 00:06:45 +0100 |
---|---|---|
committer | Marvin Borner | 2020-01-06 00:06:45 +0100 |
commit | 84a8b41f4d4c444385e0d7ef058a57af07f0c2e1 (patch) | |
tree | 71184009c6fc25c3ee1b6d097d5af6705325419a /src/kernel/gdt/gdt.c | |
parent | 9390f6408884d0631e5d9865150851d53e2d6aec (diff) |
Usermode based allocating works a bit now
*a bit*
Diffstat (limited to 'src/kernel/gdt/gdt.c')
-rw-r--r-- | src/kernel/gdt/gdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |