print_num clobbers eax, we need to reload _boot2_size after it returns
[bootcensus] / 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