--- TAJTHY_Tamás <tajthy@mailbox.hu> wrote: > Dear List, > > I try to use kmalloc in a kernel patch. It is called at the very > beginning > of the boot process. It initialises the system clock from the RTC. > It is > running on an mpc860 platform. > > I try to allocate some buffers using > > kmem = kmalloc(2000, GFP_KERNEL); > > or > > mem_addr = __get_free_page(GFP_KERNEL); > > But when I compile these lines, the boot process freezes. Do anyone > has > any idea why??? > See http://www.xml.com/ldd/chapter/book/ch07.html. Scroll downl to the section titled "The Size Argument". Harmony, --Christine __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/