Update of /cvsroot/linux-vax/kernel-2.4/include/asm-vax/mm
In directory usw-pr-cvs1:/tmp/cvs-serv16223/include/asm-vax/mm
Modified Files:
pgalloc.h
Log Message:
DA: back out my change to vmalloc unnecessary .. can just zero in pgalloc.h
Index: pgalloc.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/mm/pgalloc.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- pgalloc.h 2001/06/16 11:33:10 1.5
+++ pgalloc.h 2001/06/16 16:58:45 1.6
@@ -82,6 +82,13 @@
/* Allocate space for the p0/p1 page tables */
/* allocate 192 pages at 4096 bytes each for page tables? */
ret[0].br = (unsigned long)vmalloc(192 * PAGE_SIZE);
+ if (ret[0].br==0)
+ {
+ printk("page_tables:vmalloc failed to allocate a page directory\n");
+ BUG();
+ return NULL;
+ }
+ memset((void *)ret[0].br, 0, 192*PAGE_SIZE);
ret[0].lr = ((160*PAGE_SIZE)>>SIZEOF_PTE_LOG2);
/* the p1br needs to be set back from the end of the p1 ptes */
ret[1].br = (ret[0].br - 0x800000) + (192*PAGE_SIZE);
|