=================================================================== RCS file: /cvs/funnyos/kern/kern_mem.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- funnyos/kern/kern_mem.c 2007/10/16 09:41:04 1.1 +++ funnyos/kern/kern_mem.c 2007/10/16 12:43:11 1.2 @@ -1,5 +1,5 @@ /* - * $Id: kern_mem.c,v 1.1 2007/10/16 08:41:04 init Exp $ + * $Id: kern_mem.c,v 1.2 2007/10/16 11:43:11 init Exp $ */ #include #include @@ -154,11 +154,9 @@ /* calculate pointer to this (last) page */ lastpageptr = (uint32_t *)((allocbase + (8 * nmbmbytes * KMEM_PAGESIZE)) + (KMEM_PAGESIZE * nmbmbits)); - DPRINTF("lastpageptr=0x%x\n", lastpageptr); /* rewind pointer to the first byte */ firstpageptr = lastpageptr - ((npages - 1)); - DPRINTF("firstpageptr=0x%x\n", firstpageptr); offbits = mask ? mask - 1 : mask; /* XXX */ /* fill this (npages pages) region with zeroes */ @@ -186,7 +184,7 @@ firstpageptr = lastpageptr - ((npages - 1)); /* got it */ - DPRINTF("allocated, addr=0x%x\n", firstpageptr); + DPRINTF("allocated, addr=0x%x len=0x%x [0x%x-0x%x]\n", firstpageptr, npages * KMEM_PAGESIZE, firstpageptr, lastpageptr); /* decrement system free pages */ freepages -= npages;