print_num clobbers eax, we need to reload _boot2_size after it returns
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 15 Apr 2018 16:15:37 +0000 (19:15 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 15 Apr 2018 16:15:37 +0000 (19:15 +0300)
src/boot/boot.s

index 1cb676c..ffeb194 100644 (file)
@@ -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