[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47387DC7.9090001@checkpoint.com>
Date: Mon, 12 Nov 2007 18:22:31 +0200
From: Yoav Artzi <yoavar@...ckpoint.com>
To: Kyle McMartin <kyle@...artin.ca>
CC: Adrian Bunk <bunk@...nel.org>, Jiri Slaby <jirislaby@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: PAGE_SIZE on 64bit and 32bit machines
I see. Thanks, guys.
-------- Original Message --------
Subject: Re: PAGE_SIZE on 64bit and 32bit machines
From: Kyle McMartin <kyle@...artin.ca>
To: Yoav Artzi <yoavar@...ckpoint.com>
Date: Monday, November 12, 2007 6:11:06 PM
> 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.
>
> Scanned by Check Point VPN-1 UTM NGX R65 with Messaging Security
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists