From: Dave A. <ai...@us...> - 2001-05-19 12:03:03
|
Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/mm In directory usw-pr-cvs1:/tmp/cvs-serv28123/arch/vax/mm Modified Files: ioremap.c Log Message: fix for SPT entries difference between page/pagelet stuff Index: ioremap.c =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/mm/ioremap.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ioremap.c 2001/02/15 16:50:54 1.4 +++ ioremap.c 2001/05/19 12:03:00 1.5 @@ -57,7 +57,7 @@ We need this because iounmap() doesn't take a size arg. We store the size as a PTE count. */ -static unsigned int iomap_sizes[SPT_ENTRIES_IOMAP]; +static unsigned int iomap_sizes[SPT_PTES_IOMAP]; void *ioremap(unsigned long phys_addr, unsigned long size) { @@ -80,7 +80,7 @@ start_pte = NULL; p = iomap_base; - while (p < iomap_base+SPT_ENTRIES_IOMAP) { + while (p < iomap_base+SPT_PTES_IOMAP) { if (pte_val(*p) & _PAGE_VALID) { /* PTE in use, start over */ @@ -144,7 +144,7 @@ p = GET_HWSPTE_VIRT(addr); - if ((p < iomap_base) && (p >= (iomap_base + SPT_ENTRIES_IOMAP))) { + if ((p < iomap_base) && (p >= (iomap_base + SPT_PTES_IOMAP))) { printk("iounmap: virtual addr 0x%08lx not in IOMAP region\n", (unsigned long) addr); return; |