syscall table patch

Benjamin Herrenschmidt benh at kernel.crashing.org
Sun Nov 9 17:46:07 EST 2003


On Sat, 2003-11-08 at 05:48, linas at austin.ibm.com wrote:
> On Fri, Nov 07, 2003 at 10:50:39AM -0600, Hollis Blanchard wrote:
> > On Friday, Nov 7, 2003, at 10:36 US/Central, linas at austin.ibm.com wrote:
> > >
> > > -- table initialization is now done at runtime, rather than at
> > >    compile time.
> >
> > Why?
>
> two reasons:
>
> First reason:
>    Because I wanted to define a macro to initialize the 32-bit and 64-bit
>    tables at the same time, and couldn't figure out how to do this at
>    compile time.

Ugly preprocessor trick: #include the table definition twice, once
with a macro defined only for 64 bits table, once with a macro
defined only for 32 bits table

Ben.


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list