public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kyle McMartin <kyle@mcmartin.ca>
To: Yoav Artzi <yoavar@checkpoint.com>
Cc: Adrian Bunk <bunk@kernel.org>, Jiri Slaby <jirislaby@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: PAGE_SIZE on 64bit and 32bit machines
Date: Mon, 12 Nov 2007 11:11:06 -0500	[thread overview]
Message-ID: <20071112161106.GB24243@fattire.cabal.ca> (raw)
In-Reply-To: <47387810.3060503@checkpoint.com>

On Mon, Nov 12, 2007 at 05:58:08PM +0200, Yoav Artzi wrote:
> Looking at the source, I see:
> 
> #ifdef CONFIG_4KSTACKS
> #define THREAD_SIZE            (4096)
> #else
> #define THREAD_SIZE        (8192)
> #endif
> 
> 
> So if I configure the option CONFIG_4KSTACK, I will get a 4KB kernel 
> stack. Am I missing something here?
> 

This is only on i386 (32-bit x86...)[1] On x86-64, we have 8K kernel
stacks (THREAD_ORDER 1), and 16K irqstacks (IRQSTACK_ORDER 2).

The relevant defines are found in <asm-x86/page_64.h> for x86_64, and
<asm-x86/thread_info_32.h> for i386.

Cheers,
	Kyle

1. That is, stack size is only configurable on 32bit.

  parent reply	other threads:[~2007-11-12 16:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-12 14:39 PAGE_SIZE on 64bit and 32bit machines Yoav Artzi
2007-11-12 15:14 ` Jiri Slaby
2007-11-12 15:32   ` Yoav Artzi
2007-11-12 15:39     ` Adrian Bunk
2007-11-12 15:58       ` Yoav Artzi
2007-11-12 16:02         ` Jiri Slaby
2007-11-12 16:11         ` Kyle McMartin [this message]
2007-11-12 16:22           ` Yoav Artzi
2007-11-12 17:13 ` Chris Snook
2007-11-13 12:10 ` Helge Hafting

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=20071112161106.GB24243@fattire.cabal.ca \
    --to=kyle@mcmartin.ca \
    --cc=bunk@kernel.org \
    --cc=jirislaby@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yoavar@checkpoint.com \
    /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