patch-2.4.5 linux/arch/m68k/mm/memory.c

Next file: linux/arch/ppc/8260_io/Makefile
Previous file: linux/arch/m68k/lib/semaphore.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.4/linux/arch/m68k/mm/memory.c linux/arch/m68k/mm/memory.c
@@ -246,6 +246,10 @@
 		voff -= m68k_memory[i].size;
 	} while (++i < m68k_num_memory);
 
+	/* As a special case allow `__pa(high_memory)'.  */
+	if (voff == 0)
+		return m68k_memory[i-1].addr + m68k_memory[i-1].size;
+
 	return mm_vtop_fallback(vaddr);
 }
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)