E500 update: repoint IVPR to RAM when code is relocated
Patch by Kylo Ginsberg, 13 Apr 2005
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index d1e294f..b1c6ab0 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -429,6 +429,10 @@
 	 */
 	addr -= len;
 	addr &= ~(4096 - 1);
+#ifdef CONFIG_E500
+	/* round down to next 64 kB limit so that IVPR stays aligned */
+	addr &= ~(65536 - 1);
+#endif
 
 	debug ("Reserving %ldk for U-Boot at: %08lx\n", len >> 10, addr);