X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=post%2Flib_ppc%2Fstring.c;h=c0ddeaf6550ca850a9cc82fcbc0ed91c3c65d0ea;hb=e4430779623af500de1cee7892c379f07ef59813;hp=bd83bd136285c1fe75eea0634b6b1a4d3200869d;hpb=fc1e45ce6e45d5d88a42f4245b2d7ee134270029;p=u-boot diff --git a/post/lib_ppc/string.c b/post/lib_ppc/string.c index bd83bd1362..c0ddeaf655 100644 --- a/post/lib_ppc/string.c +++ b/post/lib_ppc/string.c @@ -33,12 +33,10 @@ * of the source and target buffers are then compared. */ -#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_02 (ulong *code, ulong op1, ulong op2); extern void cpu_post_exec_04 (ulong *code, ulong op1, ulong op2, ulong op3, @@ -49,6 +47,7 @@ int cpu_post_test_string (void) { int ret = 0; unsigned int i; + int flag = disable_interrupts(); if (ret == 0) { @@ -99,8 +98,10 @@ int cpu_post_test_string (void) post_log ("Error at string test !\n"); } + if (flag) + enable_interrupts(); + return ret; } #endif -#endif