patch-2.4.21 linux-2.4.21/arch/m68k/sun3/sun3dvma.c
Next file: linux-2.4.21/arch/m68k/sun3/sun3ints.c
Previous file: linux-2.4.21/arch/m68k/sun3/mmu_emu.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
2003-06-13 07:51:31.000000000 -0700
- Orig file:
linux-2.4.20/arch/m68k/sun3/sun3dvma.c
- Orig date:
2002-08-02 17:39:43.000000000 -0700
diff -urN linux-2.4.20/arch/m68k/sun3/sun3dvma.c linux-2.4.21/arch/m68k/sun3/sun3dvma.c
@@ -97,7 +97,7 @@
printk("end of hole listing...\n");
}
-#endif DVMA_DEBUG
+#endif /* DVMA_DEBUG */
static inline int refill(void)
{
@@ -317,8 +317,14 @@
void dvma_unmap(void *baddr)
{
-
- free_baddr((unsigned long)baddr);
+ unsigned long addr;
+
+ addr = (unsigned long)baddr;
+ /* check if this is a vme mapping */
+ if(!(addr & 0x00f00000))
+ addr |= 0xf00000;
+
+ free_baddr(addr);
return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)