problem with porting 2.6.8 kernel to ppc 405CR

From: porterzy
Date: Tue Sep 21 2004 - 07:10:56 EST


Hello,

I have problem with booting the kernel. Bootup stops after message "Now booting the kernel.. Done". I traced that execution doesn't return from function __alloc_bootmem_core (mm/bootmem.c). Depending on crosstool versions I used it stops on different lines (marked ->)

-> offset = 0;
if (align &&
(bdata->node_boot_start & (align - 1UL)) != 0)
offset = (align - (bdata->node_boot_start & (align - 1UL)));
offset >>= PAGE_SHIFT;

/*
* We try to allocate bootmem pages above 'goal'
* first, then we try to allocate lower pages.
*/
if (goal && (goal >= bdata->node_boot_start) &&
((goal >> PAGE_SHIFT) < bdata->node_low_pfn)) {
preferred = goal - bdata->node_boot_start;

if (bdata->last_success >= preferred)
preferred = bdata->last_success;
} else
preferred = 0;

preferred = ((preferred + align - 1) & ~(align - 1)) >> PAGE_SHIFT;
preferred += offset;
-> areasize = (size+PAGE_SIZE-1)/PAGE_SIZE;
-> incr = align >> PAGE_SHIFT ? : 1;

This looks very strange. Can someone explain what may be the reason?
Regards,
W.B. Lach
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/