Re: x86 memsize > 1Gb patches.

Michael Elizabeth Chastain (mec@shout.net)
Tue, 17 Mar 1998 17:11:14 -0600


Hi Horst,

> That means _two_ interfaces to do the same thing that have to be fixed
> each time, and tested, and... Is the extra work for the core maintainers
> worth it?

Well, here's some sample code:

/* include/asm/i386/io.h */
extern __inline__ void * __phys_to_virt(unsigned long address)
{
return __io_virt(address);
}

#ifndef MODULE
#define phys_to_virt(x) __phys_to_virt(x)
#endif

...

/* arch/i386/kernel/mod-wrapper.c */
#undef phys_to_virt
void * phys_to_virt(unsigned long address)
{
return __phys_to_virt(address);
}

This is a little more wrapper code. However, the actual semantics
of phys_to_virt appear in just one place.

Michael Chastain
<mailto:mec@shout.net>
"love without fear"

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