[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-08 Thread Sam Ravnborg
> > With the above construct we do the "right thing" also for > headers exported to userspace. > But actually none of the headers using the above are > subject for export at the moment so we could use a > CONFIG_ symbol for the same. One thing worth adding is that this patch fixes: make ARCH

[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-08 Thread Geert Uytterhoeven
On Mon, 8 Dec 2008, Sam Ravnborg wrote: > Following is a pseudo patch (a script + a patch) that merges > the include files for m68k and m68knommu in one place at: > > arch/m68k/include/asm > > The script was written by Arnd and I added a few modifications. Thanks! I'll take a closer look whe

[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-08 Thread Sam Ravnborg
On Tue, Dec 09, 2008 at 12:26:05AM +0100, Arnd Bergmann wrote: > On Tuesday 09 December 2008, Geert Uytterhoeven wrote: > > > I have used the following include guard: > > > > > > #ifdef __uClinux__ > > > #include "atomic_no.h" > > > #else > > > #include "atomic_mm.h" > > > #endif > > > > > > gcc

[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-09 Thread Geert Uytterhoeven
On Tue, 9 Dec 2008, Sam Ravnborg wrote: > On Tue, Dec 09, 2008 at 12:26:05AM +0100, Arnd Bergmann wrote: > > On Tuesday 09 December 2008, Geert Uytterhoeven wrote: > > > > I have used the following include guard: > > > > > > > > #ifdef __uClinux__ > > > > #include "atomic_no.h" > > > > #else > > >

[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-09 Thread Sam Ravnborg
On Tue, Dec 09, 2008 at 12:02:46PM +0100, Arnd Bergmann wrote: > On Tuesday 09 December 2008, Geert Uytterhoeven wrote: > > What are the other exported headers that differ? > > byteorder.h, param.h, ptrace.h, setup.h, sigcontext.h, siginfo.h, signal.h > and unistd.h. And diffing these files for t

[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-11 Thread Geert Uytterhoeven
On Tue, 9 Dec 2008, Sam Ravnborg wrote: > On Tue, Dec 09, 2008 at 12:26:05AM +0100, Arnd Bergmann wrote: > > On Tuesday 09 December 2008, Geert Uytterhoeven wrote: > > > > I have used the following include guard: > > > > > > > > #ifdef __uClinux__ > > > > #include "atomic_no.h" > > > > #else > > >

[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-11 Thread Geert Uytterhoeven
On Thu, 11 Dec 2008, Geert Uytterhoeven wrote: > On Tue, 9 Dec 2008, Sam Ravnborg wrote: > > On Tue, Dec 09, 2008 at 12:26:05AM +0100, Arnd Bergmann wrote: > > > On Tuesday 09 December 2008, Geert Uytterhoeven wrote: > > > > > I have used the following include guard: > > > > > > > > > > #ifdef __u

[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-11 Thread Greg Ungerer
Geert Uytterhoeven wrote: On Tue, 9 Dec 2008, Sam Ravnborg wrote: On Tue, Dec 09, 2008 at 12:26:05AM +0100, Arnd Bergmann wrote: On Tuesday 09 December 2008, Geert Uytterhoeven wrote: I have used the following include guard: #ifdef __uClinux__ #include "atomic_no.h" #else #include "atomic_mm

[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-13 Thread Sam Ravnborg
On Tue, Dec 09, 2008 at 12:26:05AM +0100, Arnd Bergmann wrote: > On Tuesday 09 December 2008, Geert Uytterhoeven wrote: > > > I have used the following include guard: > > > > > > #ifdef __uClinux__ > > > #include "atomic_no.h" > > > #else > > > #include "atomic_mm.h" > > > #endif > > > > > > gcc

[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-13 Thread Sam Ravnborg
> >> > >>>I'm not sure if it's entirely correct, but I think you can use > >>> > >>>#ifdef __KERNEL__ > >>># ifdef CONFIG_MMU > >>># include "atomic_mm.h > >>># else > >>># include "atomic_no.h > >>># endif > >>>#else > >>># ifndef __uClinux__ > >>># include "atomic_mm.h > >>># else > >>># incl

[uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-13 Thread Sam Ravnborg
On Mon, Dec 08, 2008 at 09:58:14PM +0100, Sam Ravnborg wrote: > [this mail is cross posted to uclinux mailing list which is subscriber only] > > Following is a pseudo patch (a script + a patch) that merges > the include files for m68k and m68knommu in one place at: I fixed the missing files so we

Re: [uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-09 Thread Allon Stern
On Dec 8, 2008, at 6:01 PM, Geert Uytterhoeven wrote: I think you can share a toolchain for m68k and m68knommu, at least for the kernel (I used my plain m68k toolchain when experimenting with m68knommu for Amiga). The coldfire (m68knommu) doesn't have some instructions; this caused us

Re: [uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-09 Thread Geert Uytterhoeven
On Tue, 9 Dec 2008, Allon Stern wrote: > On Dec 8, 2008, at 6:01 PM, Geert Uytterhoeven wrote: > > I think you can share a toolchain for m68k and m68knommu, at least for the > > kernel (I used my plain m68k toolchain when experimenting with m68knommu for > > Amiga). > > The coldfire (m68knommu) do

Re: [uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-11 Thread Allon Stern
On Dec 9, 2008, at 12:39 PM, Geert Uytterhoeven wrote: Sure, but that one is nicely protected by "#if defined (__mcfisaaplus__) || defined (__mcfisac__)", right? Well, that was the patch we had to apply. It wasn't in the baseline kernel.org kernel. - allon ___

Re: [uClinux-dev] Re: Merge headerfiles for m68k and m68knommu to arch/m68k/include/asm

2008-12-11 Thread Greg Ungerer
Allon Stern wrote: On Dec 9, 2008, at 12:39 PM, Geert Uytterhoeven wrote: Sure, but that one is nicely protected by "#if defined (__mcfisaaplus__) || defined (__mcfisac__)", right? Well, that was the patch we had to apply. It wasn't in the baseline kernel.org kernel. What kernel.org versio