Re: semaphore.h problems

Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
Mon, 22 Jun 1998 18:32:37 +0200 (CEST)


On Mon, 22 Jun 1998, Niclas Anderberg wrote:
> This discussion is regarding kernel 2.0.33.
>
> I am digging in the kernel, and look at the m68k version. I set arch to
> m68k and try to compile (with a good crosscompiler). I get the error that
> it can't find <asm/semaphore.h>. After some snooping i discover that
> makedep does a touch on the includes it cannot find (VERY ugly solution
> IMHO; i would like for all the files in <asm/> to be coherent).
>
> Well, since it wasn't done for me i touch the file manually. But now
> 'struct semaphore' isn't declared anywhere. I look at uClinux (m68k
> without MMU), and find that they have added the file semaphore.h
> themselves with the struct-declaration (so i eventually did the same).
>
> How complete are the versions other than intel? Why isn't all the
> architecture-dependant in linux/arch/[architecture]/ as it is supposed to
> be according to the Linux Kernel Internals book (very good book btw.). Are
> there any more platform dependencies i should look out for than all those
> macros in the headerfiles? Are there any FAQ:s or HOWTO-alike docs on the
> differencies between the platforms in the linux kernel?

Not all architectures are integrated into Linus' tree yet.

For the official Linux/m68k sources, take a look at

ftp://ftp.uni-erlange.de/pub/Linux/680x0/v2.0/

Greetings,

Geert

P.S. The same is true for 2.1.x.

--
Geert Uytterhoeven                     Geert.Uytterhoeven@cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP}  http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu