On Wed, May 04, 2005 at 02:28:29PM +0300, eliad lubovsky wrote: > Hi, > current thread_info structure (and sp) are allocated via the kmalloc() > interface. I am trying to allocate it using vmalloc() which works fine > for 4KB stack size. When trying to allocate 8KB stack size I got a > double fault exception when booting the kernel. Does anyone knows why? I > can add reg trace if it helps..
A much better question is why do you want to do it? the only difference between vmalloc and kmalloc of a single page is which memory area they come from - vmalloc space is limited. With 2 pages, kmalloc will give you virtually *and* physically contigous, while vmalloc will give you virtually contigous but not (necessarily) physically. My guess is that you're blowing up due to some kernel code not expecting the stack to come from the vmalloc area (maybe it's not even set up yet?) Cheers, Muli -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/ ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
