From 929e57f0b5c8a49a35f8b8cab3c2eae32817a3dd Mon Sep 17 00:00:00 2001 From: kotorifan Date: Mon, 2 Feb 2026 14:18:37 +0100 Subject: Stage 1 seems to work now. Replace bin with elf; Added Linker. --- src/boot/boot.stage2.asm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/boot/boot.stage2.asm') diff --git a/src/boot/boot.stage2.asm b/src/boot/boot.stage2.asm index 97a2d05..759b784 100644 --- a/src/boot/boot.stage2.asm +++ b/src/boot/boot.stage2.asm @@ -1,13 +1,19 @@ ;; boot.stage2.asm [bits 16] - [org 0x0000] %include "boot.stage2.a20.asm" %include "boot.stage2.pm.asm" + %include "boot.stage1.print.asm" + +section .stage2 - %define KERNEL_OFFSET 0x1000 _s2_entry: + mov si, boot_stage2_msg + call _print_string call _enable_a20 call _enable_pm [bits 32] + + +boot_stage2_msg: db "Entering Stage 2", 13, 10, 0 -- cgit v1.3