LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Alessandro Suardi <alessandro.suardi@oracle.com>
To: "Martin J. Bligh" <Martin.Bligh@us.ibm.com>
Cc: Dan Merillat <harik@chaos.ao.net>, linux-kernel@vger.kernel.org
Subject: Re: Wierd /proc/cpuinfo with 2.4.11-pre4
Date: Sat, 06 Oct 2001 01:10:12 +0200	[thread overview]
Message-ID: <3BBE3DD4.27DFFDCE@oracle.com> (raw)
In-Reply-To: <1566531237.1002293911@mbligh.des.sequent.com>

"Martin J. Bligh" wrote:
> 
> >> Wow!  That's pretty impressive, a new kernel build gives me an
> >> additional _7_ CPUs!
> 
> Sorry. Mea culpa
> 
> --- setup.c.old Fri Oct  5 14:20:29 2001
> +++ setup.c     Fri Oct  5 14:28:51 2001
> @@ -2420,7 +2420,7 @@
>          * WARNING - nasty evil hack ... if we print > 8, it overflows the
>          * page buffer and corrupts memory - this needs fixing properly
>          */
> -       for (n = 0; n < 8; n++, c++) {
> +       for (n = 0; n < (clustered_apic_mode ? 8 : NR_CPUS); n++, c++) {
>         /* for (n = 0; n < NR_CPUS; n++, c++) { */
>                 int fpu_exception;
>  #ifdef CONFIG_SMP
> 
> M.
> 
> PS. I just tested this since my last post. It seems to work.

Doesn't build here...

gcc -D__KERNEL__ -I/share/src/linux-2.4.11-pre4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2
-march=i686    -c -o setup.o setup.c
setup.c: In function `get_cpuinfo':
setup.c:2423: `clustered_apic_mode' undeclared (first use in this function)
setup.c:2423: (Each undeclared identifier is reported only once
setup.c:2423: for each function it appears in.)
make[1]: *** [setup.o] Error 1
make[1]: Leaving directory `/share/src/linux-2.4.11-pre4/arch/i386/kernel'
make: *** [_dir_arch/i386/kernel] Error 2

--alessandro

 "this is no time to get cute, it's a mad dog's promenade
  so walk tall, or baby don't walk at all"
                (Bruce Springsteen, 'New York City Serenade')

  reply	other threads:[~2001-10-05 23:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-05 18:16 Dan Merillat
2001-10-05 21:45 ` Alessandro Suardi
2001-10-05 21:58   ` Martin J. Bligh
2001-10-05 23:10     ` Alessandro Suardi [this message]
2001-10-05 23:07       ` Martin J. Bligh
2001-10-06  0:37         ` Alessandro Suardi
2001-10-05 23:18       ` Andreas Dilger
2001-10-05 23:20         ` Martin J. Bligh
2001-10-05 23:17     ` Brian Gerst

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=3BBE3DD4.27DFFDCE@oracle.com \
    --to=alessandro.suardi@oracle.com \
    --cc=Martin.Bligh@us.ibm.com \
    --cc=harik@chaos.ao.net \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: Wierd /proc/cpuinfo with 2.4.11-pre4' \
    /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

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).