Joan Bertran <[EMAIL PROTECTED]> writes:
> >
> > You do pass the memory size less 1MB to the kernel. I don't know why
> > we are subtracting off 2MB here. This wouldn't be an artifact of bad
> > AGP window handling would it?
>
> The memory size passed to the kernel (on x86)is the extended memory size
>
> that is the from the second Megabyte to the end, the first Megabyte is
> the real-mode accesible memory. As the value is in 512 bytes you have
> to subtract 2048.
The value is in kilobytes not sectors. So 2048 is wrong.
> If you use the 2.4.x kernel you can try using the e820 memory map,
> I thing is much clearer and flexible, the only inconvinient is that
> the kernel adjusts your values if they won't work on a standard PC, and
> if you have an embedded device without the 640-1Meg hole you have to patch
> the kernel to use this memory.
Yes, I have used it. And it is my prefered way of doing things.
My code hasn't been into linuxBIOS yet unfortunantely.
Eric