Messages in this thread Patch in this message | | | Date | Mon, 11 Oct 1999 18:54:06 -0400 (EDT) | From | Chris Noe <> | Subject | Re: [patch] 2.3.31 i386/bootsect.S |
| |
On Mon, 11 Oct 1999, Garst R. Reese wrote:
> Compile fails with msg. > bbootsect.s:1090 Error `$al' not allowed with`outw' > Sounds reasonable to me, but probably allowed in gcc-2.7.2.3, but not in > gcc-2.95 or maybe recent binutils. Anyway, patch attached changes the al > to ax. > Garst
You're right, my binutils/gcc comination didn't pick it up; but the proper fix should also zero out all of %ax as well to be safe, lest we have a non-zero %ah. uPatch attached.
Also, many thanks to Alan, Linus or whomever is responsible for merging my bootcode patch so fast (which caused this little buglet, of course) :)
Chris Noe (stiker@northlink.com) --- bootsect.S.orig Mon Oct 11 18:50:04 1999 +++ bootsect.S Mon Oct 11 18:50:35 1999 @@ -400,8 +400,8 @@ kill_motor: pushw %dx movw $0x3f2, %dx - xorb %al, %al - outw %al, %dx + xorb %ax, %ax + outw %ax, %dx popw %dx ret
| |