]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - post/lib_ppc/string.c
rename CFG_ macros to CONFIG_SYS
[people/ms/u-boot.git] / post / lib_ppc / string.c
index bd83bd136285c1fe75eea0634b6b1a4d3200869d..c0ddeaf6550ca850a9cc82fcbc0ed91c3c65d0ea 100644 (file)
  * of the source and target buffers are then compared.
  */
 
-#ifdef CONFIG_POST
-
 #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,
@@ -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