Thread (32 messages) flat view 32 messages, 9 authors, 2006-10-20

Re: [PATCH] enable RTAS /proc for PowerPC/CHRP platform

From: Olaf Hering <hidden>
Date: 2006-10-20 05:44:50

On Fri, Oct 20, Benjamin Herrenschmidt wrote:
On Thu, 2006-10-19 at 09:03 +0200, Olaf Hering wrote:
quoted
On Thu, Oct 19, Benjamin Herrenschmidt wrote:
quoted
On Wed, 2006-10-18 at 09:38 +0200, Olaf Hering wrote:
quoted
On Wed, Oct 18, Michael Ellerman wrote:
quoted
But it's called '/proc/ppc64' right now on lots of machines, so you
can't go changing it.
if test -d /proc/ppc64 .. is a quick way to check wether the system is
64bit or not. Similar to if test -d /proc/iSeries ..
That's really ugly ! You really do that ? Gack...
What way should I use?
uname ? /proc/cpuinfo ? Whatever but not that.
uname can be faked with powerpc32 or setarch. grep POWER /proc/cpuinfo
might be an option. I think its only used in rpm preinstall scripts to
reject 64bit kernel on 32bit systems or the other way around.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help