From a4ea0b14840ef5946408a3893f3f1c92ed57ae80 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Wed, 20 Jun 2018 04:39:25 +1000 Subject: Added a very basic types.h header file that defines NULL, size_t and time_t. Moved the kernel's loading point down to address 0 in conventional memory and updated linker scripts accordingly. Began to experiment with loading a binary blob into extended memory (0x100000), switching to userspace mode, and executing it. --- kernel/boot.s | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'kernel/boot.s') diff --git a/kernel/boot.s b/kernel/boot.s index e41c0b2..024abf0 100644 --- a/kernel/boot.s +++ b/kernel/boot.s @@ -17,11 +17,14 @@ kboot: cli call flush_gdt call flush_idt - call timer_init + ;call timer_init call kmain cli hlt +tss: + times 104 db 0 + gdt: ; null descriptor dq 0 @@ -53,6 +56,7 @@ gdt: db 0xF2 db 0xCF db 0x00 + ; task state segment gdtp: dw ($-gdt-1) -- cgit v1.3