Re:Typedefs & Linus
by Locke1689 on Thursday October 14, 2010 @03:19PM
(#1792196)
No it's not portable C. We replicate code for different architectures. There are portable sections, true, but the entire kernel isn't portable. Look in the source directory to find the amd64/x86/ARM specific code.
Re:Typedefs & Linus
by scott_s on Thursday October 14, 2010 @03:38PM
(#1792277)
We may be in violent agreement. Large swaths of the kernel can be portable, and you should code them as such. Of course architecture specific parts of the kernel will not be portable.
If you know how to make
__asm__ __volatile__(...)
portable I'd love to hear it.