lkml.org 
[lkml]   [1999]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [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
\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.038 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site