Re: memory size detection problem on 2.3.16+ and 2.4.x

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue Apr 03 2001 - 19:18:06 EST


> the bios will set the carry flag on the return from the call should
> there be an error. However, the BIOS on my PC doesnt do this- infact
> it seems to simply return from the call without changing any registers.

Your BIOS is faulty. No new suprises.

> meme801:
> + xorl %edx, %edx # Clear regs to work around
> + xorl %ecx, %ecx # flakey BIOSes which don't
> + # use carry bit correctly
> + # This way we get 0MB ram on
> + # call failure

Wouldn't setting the carry flag be clearer ?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 07 2001 - 21:00:13 EST