yes thats many lines. but not in the core code, that excludes all the drivers(90%),
drivers dont account for that much. They are roughly 55%
http://cityblogger.com/archives/2008/06/16/linux-kernel-stats and all the archs(5-8%)(except x86 and arm).
I'm sure you know that source code doesn't depends on archs, as archs are handled by compilers.
But I'm sure you know that.
the FreeBSD source only did confuse me.
I think your confusion might not arise from BSD.
sorry for the bad estimate... it is still only 5% of the code that is relevant.
and the archs is not only handlet by the compiler, proof:
http://lxr.linux.no/linux+v2.6.39/arch/ every platform needs to be written, it includes all the lowlevel functions for that arch: MMU, task sẃitching, detection of hardware, whole the startup stuff ...