Re: x86 memsize > 1Gb patches.

Pavel Machek (pavel@elf.ucw.cz)
Mon, 16 Mar 1998 22:07:05 +0100


> On Fri, 13 Mar 1998, Chip Salzenberg wrote:
>
> > According to Martin Mares:
> > > Functions such as phys_to_virt et. al. are going to be horribly broken when
> > > we compile modules with a different CONFIG_MAX_MEMSIZE
> >
> > Perhaps the link name of such functions should have the value of C_M_M
> > appended. Thus, phys_to_virt would link as phys_to_virt_1024.
>
> What about just not inlining it anymore ;-)

Bad idea, phys_to_virt(x) translates to (PAGE_OFFSET | x). You do not
want call overhead on single instruction. (Which is probably exactly
as long as call instruction).

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu