From 49cfee4e370892df8404e56d53b04dde196f82f2 Mon Sep 17 00:00:00 2001 From: Alexey Gavrilov Date: Sun, 31 Mar 2024 14:39:51 +0700 Subject: IDT + uintptr update --- kernel/boot.s | 2 ++ kernel/kernel.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'kernel') diff --git a/kernel/boot.s b/kernel/boot.s index 987cb48..710bb7b 100644 --- a/kernel/boot.s +++ b/kernel/boot.s @@ -10,6 +10,7 @@ align 4 section .bss align 16 +resb 160 stack_bottom: resb 16384 stack_top: @@ -20,6 +21,7 @@ global _start:function (_start.end - _start) _start: mov esp, stack_top call main + int 0x20 cli .hang: hlt jmp .hang diff --git a/kernel/kernel.c b/kernel/kernel.c index 36fb0fd..09152b8 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -8,8 +8,8 @@ void main() { SecondaryInitialization init; - init.processorInitialize(); init.devicesInitialize(); + init.processorInitialize(); out::display << "Hello, World!\n"; Rsdp *rsdp = (Rsdp *)StringOperations::findInMemory(Rsdp::signatureString, @@ -29,6 +29,5 @@ void main() madt->getIcs(7), madt->getIcs(8)}; const IoapicStruct *ioapicStruct = (IoapicStruct *)icsEntry[1]; - out::display << '\n'; empty(); }; -- cgit v1.2.3