2.6.19-git13: uts banner changes break SLES9 (at least)
David Miller
davem at davemloft.net
Tue Dec 12 11:05:41 EST 2006
From: Paul Mackerras <paulus at samba.org>
Date: Tue, 12 Dec 2006 09:04:41 +1100
> If there is a reliable way to get the version string, great, I'll use
> that.
FWIW, on sparc and sparc64 we have this information block for
the boot loader.
The first two instructions at the entry point simply branch
over the boot loader information block header.
The information block starts with a known magic string "HdrS" which
does not match any valid Sparc instruction. Any tool can search for
it starting at the symbol "_start" in the kernel image.
Inside this information block we stick a 32-bit word which contains
LINUX_VERSION_CODE.
That only gives you the version, not the whole version string, but you
could put the whole string in such a location when adding such a
facility to powerpc if you wanted to.
More information about the Linuxppc-dev
mailing list