From d16b83e92aa87f89902440625b23b3b81e206213 Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sun, 15 Apr 2018 19:15:37 +0300 Subject: [PATCH 1/1] print_num clobbers eax, we need to reload _boot2_size after it returns --- src/boot/boot.s | 1 + 1 file changed, 1 insertion(+) diff --git a/src/boot/boot.s b/src/boot/boot.s index 1cb676c..ffeb194 100644 --- a/src/boot/boot.s +++ b/src/boot/boot.s @@ -48,6 +48,7 @@ boot: mov $_boot2_size, %eax call print_num + mov $_boot2_size, %eax mov %eax, %ebx shr $9, %eax and $0x1ff, %ebx -- 1.7.10.4