gdt: increase GDT size
This commit is contained in:
parent
2c88b77edd
commit
e7ceff19ec
2 changed files with 3 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
#ifndef _GDT_H_
|
#ifndef _GDT_H_
|
||||||
#define _GDT_H_
|
#define _GDT_H_
|
||||||
|
|
||||||
#define GDT_NUMDESC 64
|
#define GDT_NUMDESC 192
|
||||||
#define GDT_SIZE (64 * GDT_NUMDESC)
|
#define GDT_SIZE (64 * GDT_NUMDESC)
|
||||||
|
|
||||||
#define GDT_ACCESS_DATA_RING0 0b10010010
|
#define GDT_ACCESS_DATA_RING0 0b10010010
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,8 @@ void kmain(void)
|
||||||
void *kstack = buddy_alloc(KSTACK_SIZE);
|
void *kstack = buddy_alloc(KSTACK_SIZE);
|
||||||
uintptr_t ptr = (uintptr_t)kstack + KSTACK_SIZE - 8;
|
uintptr_t ptr = (uintptr_t)kstack + KSTACK_SIZE - 8;
|
||||||
|
|
||||||
gdt_insert_tss(ptr);
|
uint16_t tss = gdt_insert_tss(ptr);
|
||||||
|
ltr(tss);
|
||||||
|
|
||||||
/* init the application processors */
|
/* init the application processors */
|
||||||
struct limine_smp_response *smp_resp = smp_req.response;
|
struct limine_smp_response *smp_resp = smp_req.response;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue