[PATCH 1/2] Make setjmp/longjmp code generic
Michael Neuling
mikey at neuling.org
Thu Jan 17 16:36:49 EST 2008
In message <20080117053857.GA29035 at lixom.net> you wrote:
> Hi,
>
> On Thu, Jan 17, 2008 at 03:45:42PM +1100, Michael Neuling wrote:
>
> > Index: linux-2.6-ozlabs/include/asm-powerpc/setjmp.h
> > ===================================================================
> > --- /dev/null
> > +++ linux-2.6-ozlabs/include/asm-powerpc/setjmp.h
> > @@ -0,0 +1,18 @@
> > +/*
> > + * Copyright (C) 2007 Michael Neuling
^^^^^^
> > + *
> > + * This program is free software; you can redistribute it and/or
> > + * modify it under the terms of the GNU General Public License
> > + * as published by the Free Software Foundation; either version
> > + * 2 of the License, or (at your option) any later version.
> > + *
> > + */
> > +#ifndef _ASM_POWERPC_SETJMP_H
> > +#define _ASM_POWERPC_SETJMP_H
> > +
> > +#define JMP_BUF_LEN 23
> > +
> > +extern long setjmp(long *);
> > +extern void longjmp(long *, long);
> > +
> > +#endif /* _ASM_POWERPC_SETJMP_H */
>
> Should the above be inside #ifdef __KERNEL__?
Yep... _and_ it's 2008 now!
I'll update.
Mikey
More information about the Linuxppc-dev
mailing list