From: David Miller <davem@davemloft.net>
To: paulus@samba.org
Cc: akpm@osdl.org, olaf@aepfle.de, drfickle@us.ibm.com,
linux-kernel@vger.kernel.org, ak@suse.de,
linuxppc-dev@ozlabs.org, torvalds@osdl.org
Subject: Re: 2.6.19-git13: uts banner changes break SLES9 (at least)
Date: Mon, 11 Dec 2006 16:05:41 -0800 (PST) [thread overview]
Message-ID: <20061211.160541.111202759.davem@davemloft.net> (raw)
In-Reply-To: <17789.54777.283849.950002@cargo.ozlabs.ibm.com>
From: Paul Mackerras <paulus@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.
next prev parent reply other threads:[~2006-12-12 0:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <457D750C.9060807@shadowen.org>
[not found] ` <20061211163333.GA17947@aepfle.de>
[not found] ` <Pine.LNX.4.64.0612110840240.12500@woody.osdl.org>
[not found] ` <Pine.LNX.4.64.0612110852010.12500@woody.osdl.org>
[not found] ` <20061211180414.GA18833@aepfle.de>
[not found] ` <20061211181813.GB18963@aepfle.de>
[not found] ` <Pine.LNX.4.64.0612111022140.12500@woody.osdl.org>
[not found] ` <20061211182908.GC7256@MAIL.13thfloor.at>
[not found] ` <Pine.LNX.4.64.0612111040160.12500@woody.osdl.org>
[not found] ` <20061211185536.GA19338@aepfle.de>
[not found] ` <Pine.LNX.4.64.0612111106310.12500@woody.osdl.org>
2006-12-11 22:04 ` 2.6.19-git13: uts banner changes break SLES9 (at least) Paul Mackerras
2006-12-12 0:05 ` David Miller [this message]
2006-12-12 9:10 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061211.160541.111202759.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ak@suse.de \
--cc=akpm@osdl.org \
--cc=drfickle@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=olaf@aepfle.de \
--cc=paulus@samba.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).