]> git.sur5r.net Git - u-boot/blobdiff - arch/sparc/cpu/leon3/prom.c
Merge branch 'master' of git://git.denx.de/u-boot-imx
[u-boot] / arch / sparc / cpu / leon3 / prom.c
index 18d2fb294aee9cff2436a5e58c71b398180ab0a8..1bd28d4c8e20aeebe5ea67bbdb72629e4278540a 100644 (file)
@@ -54,9 +54,9 @@ extern int __prom_start;
 #define PROM_SIZE_MASK (PROM_OFFS-1)
 #define __va(x) ( \
        (void *)( ((unsigned long)(x))-PROM_OFFS+ \
-       (CONFIG_SYS_PROM_OFFSET-phys_base)+PAGE_OFFSET-TEXT_BASE ) \
+       (CONFIG_SYS_PROM_OFFSET-phys_base)+PAGE_OFFSET-CONFIG_SYS_TEXT_BASE ) \
        )
-#define __phy(x) ((void *)(((unsigned long)(x))-PROM_OFFS+CONFIG_SYS_PROM_OFFSET-TEXT_BASE))
+#define __phy(x) ((void *)(((unsigned long)(x))-PROM_OFFS+CONFIG_SYS_PROM_OFFSET-CONFIG_SYS_TEXT_BASE))
 
 struct property {
        char *name;