X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_ppc%2Fboard.c;h=a30acee4febf5ee5c675953cfd2feeacfa8da8e7;hb=116095eb1f0f7017ea8062aa8a8ba8ceecb430b5;hp=2889b2c2c516af21f444a54f10d0fe926bf8062c;hpb=82826d5422331e9c99e5408dcf0348c8e0c257a6;p=u-boot diff --git a/lib_ppc/board.c b/lib_ppc/board.c index 2889b2c2c5..a30acee4fe 100644 --- a/lib_ppc/board.c +++ b/lib_ppc/board.c @@ -477,10 +477,6 @@ void board_init_f (ulong bootflag) debug ("Reserving %ldk for U-Boot at: %08lx\n", len >> 10, addr); -#ifdef CONFIG_AMIGAONEG3SE - gd->relocaddr = addr; -#endif - /* * reserve memory for malloc() arena */ @@ -612,6 +608,8 @@ void board_init_f (ulong bootflag) WATCHDOG_RESET(); + gd->relocaddr = addr; /* Record relocation address, useful for debug */ + memcpy (id, (void *)gd, sizeof (gd_t)); relocate_code (addr_sp, id, addr);