A little patch

Philipp Rumpf prumpf at jcsbs.lanobis.de
Sun Nov 15 00:01:14 CET 1998


On Sat, Nov 14, 1998 at 10:09:15PM +0100, Daniel Engstrom wrote:
> This is against gfw-0.1 (I have note switched to Stepans version yet)
> * exception cleanup
> * console in works
> * the beginnings of a memory tester 
> 
> Can anybody figure out why the memtest fails? (boot/init32/memtest.S) 

%edx is 0 ?
cause you write

cmpl    $0, %edx        # did we relocate earlier ?
je      .out
        ^^^^ does not reset %eax, which is 0x10000 in the moment

thereby returning 0x10000.

patch:

je      .ok_out

...

.ok_out:        xorl %eax,%eax
                jmp .out

For %edx != 0, I guess the reason would be a memory error ;-)



More information about the openbios mailing list