X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=post%2Flib_ppc%2Fload.c;h=98d437318c6956c8a8c5d2ddbdc150178fcc634a;hb=f82642e33899766892499b163e60560fbbf87773;hp=393c56830d9d6cd4aa445df1880c629a30b6a8b0;hpb=ee89bf2782406b1f87088b4764aeb6f811d82526;p=u-boot diff --git a/post/lib_ppc/load.c b/post/lib_ppc/load.c index 393c56830d..98d437318c 100644 --- a/post/lib_ppc/load.c +++ b/post/lib_ppc/load.c @@ -41,12 +41,10 @@ * register (it must change for "load with update" instructions). */ -#ifdef CONFIG_POST - #include #include "cpu_asm.h" -#if CONFIG_POST & CFG_POST_CPU +#if CONFIG_POST & CONFIG_SYS_POST_CPU extern void cpu_post_exec_22w (ulong *code, ulong *op1, ulong op2, ulong *op3); extern void cpu_post_exec_21w (ulong *code, ulong *op1, ulong *op2); @@ -180,6 +178,7 @@ int cpu_post_test_load (void) { int ret = 0; unsigned int i; + int flag = disable_interrupts(); for (i = 0; i < cpu_post_load_size && ret == 0; i++) { @@ -248,8 +247,10 @@ int cpu_post_test_load (void) } } + if (flag) + enable_interrupts(); + return ret; } #endif -#endif