X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=bootcensus;a=blobdiff_plain;f=src%2Fboot%2Fboot2.s;h=6372557ee2e3be08783404529b2713fbcfc354d5;hp=161bd7343373334d3cc9905fa2ddfd09a98f7af3;hb=559dd7c3c836a69eac46bd12c7ef61bb5de8882c;hpb=eb934abaf0dcfa48589c6ac15f2a2ff235c5aea0 diff --git a/src/boot/boot2.s b/src/boot/boot2.s index 161bd73..6372557 100644 --- a/src/boot/boot2.s +++ b/src/boot/boot2.s @@ -16,7 +16,7 @@ # this is the second-stage boot loader .code16 - .section .boot2,"a" + .section .boot2,"ax" .set main_load_addr, 0x100000 @@ -230,15 +230,15 @@ ldloop: mov $10, %ax call putchar - # DBG - hlt - ret rdtrk_msg: .asciz "Reading track: " rdcyl_msg: .asciz " - cyl: " rdhead_msg: .asciz " head: " rdsect_msg: .asciz " start sect: " +rdlast_msg: .asciz " ... " +rdok_msg: .asciz "OK\n" +rdfail_msg: .asciz "failed\n" read_retries: .short 0 @@ -292,8 +292,8 @@ read_try: call putstr mov trk_sect, %eax call print_num - mov $10, %al - call putchar + mov $rdlast_msg, %esi + call putstr # start sector (1-based) in cl[0, 5] mov trk_sect, %al @@ -320,11 +320,13 @@ read_try: jmp read_try read_fail: + mov $rdfail_msg, %esi + call putstr jmp abort_read read_ok: - mov $35, %ax - call putchar + mov $rdok_msg, %esi + call putstr # reset es to 0 before returning xor %ax, %ax