From: John Tsiombikas Date: Sun, 15 Apr 2018 16:15:37 +0000 (+0300) Subject: print_num clobbers eax, we need to reload _boot2_size after it returns X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;ds=sidebyside;h=d16b83e92aa87f89902440625b23b3b81e206213;hp=b11dcef5abc8ad3160fbcb986f1278aa30db9c36;p=bootcensus print_num clobbers eax, we need to reload _boot2_size after it returns --- 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