kmalloc freeze

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear List,

I try to use kmalloc in a kernel patch (Not in a module! It is compiled to 
the kernel). It is called at the very beginningof 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);

If I put the kmalloc into a module, it works nicely.

But when I compile these lines, the boot process freezes. Does anyone have 
any idea why??? Am I trying to allocate memory too early in the boot 
process? Which is the critical point where I can use these functions?

TIA && Good byte!

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux