public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Hansen <haveblue@us.ibm.com>
To: Hugh Dickins <hugh@veritas.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] fix strange stack calculation for secondary cpus
Date: Tue, 10 Dec 2002 17:23:15 -0800	[thread overview]
Message-ID: <3DF69383.3090602@us.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0212110048360.1821-100000@localhost.localdomain>

Hugh Dickins wrote:
> On Tue, 10 Dec 2002, Dave Hansen wrote:
> 
>>in arch/i386/kernel/smpboot.c:
>>stack_start.esp = (void *) (1024 + PAGE_SIZE + (char *)idle);
>>
>>This causes problems when I switch to 4k stacks?  What is supposed to 
>>be going on here?  Why point esp into the middle of the stack?  If you 
>>wanted to do that, why not just use PAGE_SIZE>>2?
>>
> To avoid mysterious magic numbers, I chose instead to start it immediately
> below that area i.e. set the top esp here to the bottom esp there.  That
> worked fine for 2.4, I don't see why the same shouldn't work for 2.5.

It should.  I just want to be able to use arbitrary stack sizes.

> Whereas with your patch, you might be overwriting that area.
> So below I've munged your patch into what we found worked back then.

Agreed.  I was really just trying to eliminate the magic number 
without much real knowledge about what was going on.

Would you like to send your patch on to Alan or Linus?
-- 
Dave Hansen
haveblue@us.ibm.com


      reply	other threads:[~2002-12-11  1:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10 21:00 [PATCH] fix strange stack calculation for secondary cpus Dave Hansen
2002-12-11  1:10 ` Hugh Dickins
2002-12-11  1:23   ` Dave Hansen [this message]

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=3DF69383.3090602@us.ibm.com \
    --to=haveblue@us.ibm.com \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.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