lkml.org 
[lkml]   [1997]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectPre-2.0.31 minor change in arch/i386/boot/setup.S
Date
As86 can do 16-bit unconditional jumps. It just can't do them automatically, so you have
to specify them with the "br" instruction. There seems to be no reason to perpetuate
incorrect assumptions, so here's a simple patch on top of the pre-2.0.31 patch to fix it.

Thanks


--- linux-pre-2.0.31/arch/i386/boot/setup.S Wed May 7 19:54:25 1997
+++ linux-pre-2.0.31/arch/i386/boot/setup.S.new Thu May 8 17:15:37 1997
@@ -251,8 +251,7 @@
popf ! Restore CF error flag
jnc int15_88_good ! CF = 1 indicates error
movb [0x228], #0x01 ! Return the result code
- lea cx, end_memdetect ! gas can't do 16-bit offset jumps. very annoying.
- jmp cx
+ br end_memdetect ! We're through
int15_88_good:
cmp eax, #0x00010000 ! check AX for memory >= 64M
jge testfor_int15_c7 ! if >= 64M, check for more advanced BIOS calls

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.119 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site