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