--=_courier-21863-1054919459-0001-2
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
__alloc_bootmem_core() has a couple of BUG_ON()'s. Since the handlers
aren't set up this early, if you hit it, you just get along stream of
"Unknown Interrupt" messages. It would be very nice to have a little
bit more information when something has decided to BUG() out this
early.
-- Dave Hansen haveblue@us.ibm.com--=_courier-21863-1054919459-0001-2 Content-Type: text/plain; name="bootmem-core-warn-2.5.70-0.patch"; charset="ansi_x3.4-1968" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=bootmem-core-warn-2.5.70-0.patch
--- linux-2.5.70-clean/mm/bootmem.c Mon May 26 18:00:27 2003 +++ linux-2.5.70-early/mm/bootmem.c Fri Jun 6 06:58:46 2003 @@ -151,7 +151,11 @@ __alloc_bootmem_core(struct bootmem_data unsigned long i, start = 0, incr, eidx; void *ret; - BUG_ON(!size); + if(!size) { + printk("__alloc_bootmem_core(): zero-sized request\n"); + dump_stack(); + BUG(); + } BUG_ON(align & (align-1)); eidx = bdata->node_low_pfn - (bdata->node_boot_start >> PAGE_SHIFT); diff -rup linux-2.5.70-clean/mm/page_alloc.c linux-2.5.70-early/mm/page_alloc.c
--=_courier-21863-1054919459-0001-2--