[SH][PATCH] SH Kernel compatibility
Andrew Stubbs
ams@codesourcery.com
Tue Feb 3 15:03:00 GMT 2009
Daniel Jacobowitz wrote:
> On Mon, Feb 02, 2009 at 10:04:22AM +0000, Andrew Stubbs wrote:
>> I think the problem is that I have added an include of asm/ptrace.h in
>> sys/procfs.h (to get struct pt_regs).
>
> Is the size of the struct all you need asm/ptrace.h for? Some other
> targets just "#define ELF_NGREG 33", which avoids any namespace
> pollution issues.
OK, how about this one? The code only need the pt_regs for the size, as
you say. However, it does use REG_GBR, and possibly others. I've
included the full set of register defines, just in case.
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-kernel-update.patch
Type: text/x-diff
Size: 1933 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20090203/da754082/attachment.bin>
More information about the Libc-alpha
mailing list