]> git.sur5r.net Git - u-boot/blobdiff - post/lib_ppc/string.c
sh: lowlevel_init coding style cleanup
[u-boot] / post / lib_ppc / string.c
index b2daa8804968ea628268235bea4e14e31d6ecedd..c0ddeaf6550ca850a9cc82fcbc0ed91c3c65d0ea 100644 (file)
@@ -36,7 +36,7 @@
 #include <post.h>
 #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,
@@ -47,6 +47,7 @@ int cpu_post_test_string (void)
 {
     int ret = 0;
     unsigned int i;
+    int flag = disable_interrupts();
 
     if (ret == 0)
     {
@@ -97,6 +98,9 @@ int cpu_post_test_string (void)
        post_log ("Error at string test !\n");
     }
 
+    if (flag)
+       enable_interrupts();
+
     return ret;
 }