Messages in this thread | | | Date | Tue, 16 Mar 2004 02:40:42 -0800 | From | William Lee Irwin III <> | Subject | Re: [PATCH][2.6-mm] Fix 4G/4G w/ 8k+ stacks |
| |
On Tue, Mar 16, 2004 at 01:35:36AM -0500, Zwane Mwaikambo wrote: > +#ifdef CONFIG_4KSTACKS > +#define STACK_PAGE_COUNT (4096/PAGE_SIZE) > +#else > +#define STACK_PAGE_COUNT (8192/PAGE_SIZE) /* THREAD_SIZE/PAGE_SIZE */ > +#endif
This looks like it wants to be:
#define STACK_PAGE_COUNT (PAGE_ALIGN(THREAD_SIZE)/PAGE_SIZE)
(There are reasons to want THREAD_SIZE < PAGE_SIZE having to do with elevating PAGE_SIZE as opposed to shrinking THREAD_SIZE outright.)
It looks like kmap_types.h should inherits PAGE_* from processor.h which in turn should inherit them from page.h
Did the headers barf on this or something? I can't imagine you didn't think of it already.
-- wli - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |