On 12 Feb 2001, Eric W. Biederman wrote:
> Tyson D Sawyer <[EMAIL PROTECTED]> writes:
> > /* the ram address should be the last mbyte, AFAIK. Subtract one
> > for the
> > * low 1 MB. So subtract 2K total
> > */
> > set_memory_size(empty_zero_page, 0x3c00, totalram - 2048);
> >
> > I haven't checked the details on this, but based on the behavior I saw
> > trying to load the initrd image, either you don't subtract the low 1MB
> > or you don't point to the last MB.
>
> 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?
that's my old code from way back. You pull off two mb (as I
recall) because you're passing in the address of the last mb, and you have
total size, so you knock off 1 mb for the low 1mb, and then another mb
since you're passing in the last address, not size.
But I might be wrong.
ron