From: Helge Deller <deller@gmx.de>
To: "Neulinger, Nathan" <nneul@umr.edu>,
"'John Marvin'" <jsm@udlkern.fc.hp.com>,
parisc-linux@lists.parisc-linux.org
Cc: "Uetrecht, Daniel J." <uetrecht@umr.edu>
Subject: Re: [parisc-linux] HP-UX binary compatibility
Date: Sat, 6 Oct 2001 09:58:51 +0200 [thread overview]
Message-ID: <20011006075920.EF99A4830@dsl2.external.hp.com> (raw)
In-Reply-To: <6CAC36C3427CEB45A4A6DF0FBDABA56D86D869@umr-mail03.cc.umr.edu>
Hi Nathan,
I just verified and the /proc/cpuinfo entry was removed in the meantime.
But with the following code-fragment you will get the right number:
#include <asm/processor.h>
printk("ID: %ld\n", boot_cpu_data.pdc.model.sw_id);
This value is initialized during boot-up in setup.c and comes from the
PDC_MODEL [pdc_model_info()] syscall.
Greetings,
Helge
On Friday 05 October 2001 17:14, Neulinger, Nathan wrote:
> Hmm... Doesn't appear to be in there. At the moment, I actually could care
> less about the real host id, but if the proc entry was overwritable, that
> would solve my needs perfectly. At the moment, in my local kernel source, I
> just wired the appropriate return values in the system call wrapper.
>
> -- Nathan
>
> > -----Original Message-----
> > From: Helge Deller [mailto:helge.deller@sap.com]
> > Sent: Friday, October 05, 2001 3:18 AM
> > To: Neulinger, Nathan; 'John Marvin';
> > parisc-linux@lists.parisc-linux.org
> > Cc: Uetrecht, Daniel J.
> > Subject: Re: [parisc-linux] HP-UX binary compatibility
> >
> >
> > Hi Nathan,
> >
> > On Thursday 04 October 2001 17:07, Neulinger, Nathan wrote:
> > > troot-halley(11)> uname -a
> > > HP-UX halley B.10.20 A 9000/735 2002000004 two-user license
> > > troot-halley(12)> uname -i
> > > 2002000004
> > >
> > > It's that 2002000004 that I need.
> >
> > I currently don't have access to a parisc-linux machine, but out of
> > my head I think you may get that number from the /proc/cpuinfo file
> > (maybe it is displayed there in hex) and may use it from the variable
> > behind this output for your syscall wrapper.
> >
> > Greetings,
> > Helge
next prev parent reply other threads:[~2001-10-06 7:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-05 15:14 [parisc-linux] HP-UX binary compatibility Neulinger, Nathan
2001-10-06 7:58 ` Helge Deller [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-10-04 21:16 Neulinger, Nathan
2001-10-05 14:04 ` Richard Hirst
2001-10-04 20:56 Neulinger, Nathan
2001-10-04 17:58 Neulinger, Nathan
2001-10-04 20:10 ` Matthew Wilcox
2001-10-04 15:07 Neulinger, Nathan
2001-10-05 8:17 ` Helge Deller
2001-10-04 11:56 John Marvin
2001-10-04 12:43 ` Nathan Neulinger
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=20011006075920.EF99A4830@dsl2.external.hp.com \
--to=deller@gmx.de \
--cc=jsm@udlkern.fc.hp.com \
--cc=nneul@umr.edu \
--cc=parisc-linux@lists.parisc-linux.org \
--cc=uetrecht@umr.edu \
/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