diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2005-02-12 20:23:03 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2005-02-12 20:23:03 +0000 |
commit | 2e2c6400e4555ed4b355ec820909fc8e0a402256 (patch) | |
tree | e2a18a1d0cde487145a8204a852c1246345f3819 /sys-kernel/linux-headers/files | |
parent | initial import (diff) | |
download | gentoo-2-2e2c6400e4555ed4b355ec820909fc8e0a402256.tar.gz gentoo-2-2e2c6400e4555ed4b355ec820909fc8e0a402256.tar.bz2 gentoo-2-2e2c6400e4555ed4b355ec820909fc8e0a402256.zip |
sparc header fix sent by me upstream abouta month ago.
(Portage version: 2.0.51.16)
Diffstat (limited to 'sys-kernel/linux-headers/files')
-rw-r--r-- | sys-kernel/linux-headers/files/linux-headers-2.6.10-appCompat.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sys-kernel/linux-headers/files/linux-headers-2.6.10-appCompat.patch b/sys-kernel/linux-headers/files/linux-headers-2.6.10-appCompat.patch index 55d81fd2263d..f4bd448f5a00 100644 --- a/sys-kernel/linux-headers/files/linux-headers-2.6.10-appCompat.patch +++ b/sys-kernel/linux-headers/files/linux-headers-2.6.10-appCompat.patch @@ -2212,3 +2212,40 @@ diff -urp linux-2.6.10/include/linux/if_fddi.h linux-2.6.10-gentoo/include/linux /* * Define max and min legal sizes. The frame sizes do not include * 4 byte FCS/CRC (frame check sequence). +--- linux-2.6.10/include/asm-sparc/processor.h 2004-12-11 15:49:24.522603912 -0800 ++++ linux-2.6.10-gentoo/include/asm-sparc/processor.h 2004-12-11 15:49:18.865463928 -0800 +@@ -44,11 +44,13 @@ + struct task_struct; + + #ifdef __KERNEL__ +-struct fpq { ++#define __fpq fpq ++#endif ++ ++struct __fpq { + unsigned long *insn_addr; + unsigned long insn; + }; +-#endif + + typedef struct { + int seg; +@@ -67,13 +69,17 @@ struct thread_struct { + unsigned long float_regs[32] __attribute__ ((aligned (8))); + unsigned long fsr; + unsigned long fpqdepth; +- struct fpq fpqueue[16]; ++ struct __fpq fpqueue[16]; + unsigned long flags; + mm_segment_t current_ds; + struct exec core_exec; /* just what it says. */ + int new_signal; + }; + ++#ifdef __KERNEL__ ++#undef __fpq ++#endif ++ + #define SPARC_FLAG_KTHREAD 0x1 /* task is a kernel thread */ + #define SPARC_FLAG_UNALIGNED 0x2 /* is allowed to do unaligned accesses */ + |