[SH][PATCH] fix headers for new kernel headers
Kaz Kojima
kkojima@rr.iij4u.or.jp
Tue Feb 17 17:12:00 GMT 2009
SUGIOKA Toshinobu <sugioka@itonet.co.jp> wrote:
> Newer kernel headers build by 'make headers_install' does not include
> asm/elf.h and asm/user.h. So we should copy content of these headers
> to our own heades. Attached patch worked for me to compile under recent
> kernel headers.
>
> 2009-02-17 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
>
> sysdeps/unix/sysv/linux/sh/sys/procfs.h: Don't include signal.h,
> sys/ucontext.h, asm/elf.h. remove #if 0...#endif. add/fix comments.
>
> sysdeps/unix/sysv/linux/sh/sys/user.h: Don't include features.h,
> asm/user.h.
> Define REGS_XXX, struct user_regs_struct, struct user_dspregs_struct,
> struct user_fpu_struct, struct user, PAGE_SHIFT, PAGE_SIZE, PAGE_MASK,
> NBPG, UPAGES, HOST_TEXT_START_ADDR, HOST_DATA_START_ADDR,
> HOST_STACK_END_ADDR.
> remove "#undef start_thread".
Did you see the thread
http://sourceware.org/ml/libc-alpha/2009-02/msg00004.html
? Does Andrew's patch fix your problem?
Regards,
kaz
More information about the Libc-alpha
mailing list