lkml.org 
[lkml]   [1998]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: x86 memsize > 1Gb patches.
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

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.015 / U:1.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site