Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2005 01:36:06 +0000
From:      Peter Edwards <peadar.edwards@gmail.com>
To:        Julian Elischer <julian@elischer.org>, current@freebsd.org
Subject:   Re: Is there a boot sector guru in the house?
Message-ID:  <34cb7c840501041736570afdfa@mail.gmail.com>
In-Reply-To: <41DAF53A.5000300@elischer.org>
References:  <41DA2AE0.3020108@elischer.org> <20050104.032929.102142020.imp@bsdimp.com> <20050104114308.D30830@maren.thelosingend.net> <41DAF53A.5000300@elischer.org>

index | next in thread | previous in thread | raw e-mail

I don't have a box I can test this on, but this looks like a definite
candidate to get
3 more bytes:

--- boot0.S     24 Nov 2004 15:39:04 -0000      1.12
+++ boot0.S     5 Jan 2005 01:27:31 -0000
@@ -314,8 +314,7 @@
                cmpw $MAGIC,0x1fe(%bx)          # Bootable?
                jne main.10                     # No
                pushw %si                       # Save
-               movw $crlf,%si                  # Leave some
-               callw puts                      #  space
+               callw putn                      # Leave space
                popw %si                        # Restore
                jmp *%bx                        # Invoke bootstrap

If my arithmetic is correct, that leaves us wanting one more byte.
I don't get the save/restore of %si at the end, and judging by the
comment, someone else didn't either. It could be of some use to the
chained loader, but our  boot1.S doesn't do anything with it.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34cb7c840501041736570afdfa>