proc: fix errors, enter userspace

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-21 04:33:35 -04:00
commit c7fa9a75fa
15 changed files with 86 additions and 8 deletions

View file

@ -12,6 +12,7 @@
#define GDT_SEGMENT_DATA_RING0 0x30
#define GDT_SEGMENT_CODE_RING3 0x38
#define GDT_SEGMENT_DATA_RING3 0x40
#define GDT_SEGMENT_TSS 0x48
#define GATE_INTR 0x8E
#define GATE_TRAP 0x8F
@ -21,6 +22,8 @@
#include <kernel/common.h>
struct cpu_local;
struct gdt_desc {
uint16_t limit;
uint16_t base;
@ -87,5 +90,6 @@ extern struct irq_desc __idt[64];
void gdt_init();
void idt_init();
void tss_init(int cpu_id, struct cpu_local *local);
#endif /* _DESCRIPTOR_H_ */