From 49f8c3c810db582e0aec58049f38fc57ccac4144 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Thu, 13 Aug 2015 13:04:06 +0200 Subject: [PATCH] Add a small stack --- src/arch/x86_64/boot.asm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/arch/x86_64/boot.asm b/src/arch/x86_64/boot.asm index b6a7c006..c2f8dd7b 100644 --- a/src/arch/x86_64/boot.asm +++ b/src/arch/x86_64/boot.asm @@ -17,6 +17,8 @@ global start section .text bits 32 start: + mov esp, stack_top + ; print `OK` to screen mov dword [0xb8000], 0x2f4b2f4f hlt @@ -29,3 +31,8 @@ error: mov dword [0xb8008], 0x4f204f20 mov byte [0xb800a], al hlt + +section .bss +stack_bottom: + resb 64 +stack_top: