Thread (6 messages) 6 messages, 3 authors, 2012-01-29

kmalloc before kmem_cache_init

From: Dave Hylands <hidden>
Date: 2012-01-29 06:58:25

Hi Sukanto

On Sat, Jan 28, 2012 at 10:02 PM, Sukanto Ghosh
[off-list ref] wrote:
I am kind of lost trying to figure out how can kmallocs work if they
are called before kmem_cache_init

(e.g. such a case occurs when in start_kernel() we call
parse_early_param() (which in turn might call
early_serial8250_setup() if earlycon= is used in kernel command-line)
before mm_init() ?(which later calls
kmem_cache_init() )
I don't think that you're allowed to call kmalloc during early_setup.
I don't see where early_serial8250_setup calls kmalloc.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.davehylands.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help