projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
galaxy5200: enable version environment variable
[oweals/u-boot.git]
/
post
/
lib_ppc
/
cmp.c
diff --git
a/post/lib_ppc/cmp.c
b/post/lib_ppc/cmp.c
index 8d80f86aafd7b60e869cacffdcfc64861b24d66f..5f6a3b904666ac9ea1b0af5adb166ede5f36d5c2 100644
(file)
--- a/
post/lib_ppc/cmp.c
+++ b/
post/lib_ppc/cmp.c
@@
-39,7
+39,7
@@
#include <post.h>
#include "cpu_asm.h"
#include <post.h>
#include "cpu_asm.h"
-#if CONFIG_POST & C
FG
_POST_CPU
+#if CONFIG_POST & C
ONFIG_SYS
_POST_CPU
extern void cpu_post_exec_12 (ulong *code, ulong *res, ulong op1, ulong op2);
extern void cpu_post_exec_12 (ulong *code, ulong *res, ulong op1, ulong op2);
@@
-102,6
+102,7
@@
int cpu_post_test_cmp (void)
{
int ret = 0;
unsigned int i;
{
int ret = 0;
unsigned int i;
+ int flag = disable_interrupts();
for (i = 0; i < cpu_post_cmp_size && ret == 0; i++)
{
for (i = 0; i < cpu_post_cmp_size && ret == 0; i++)
{
@@
-124,6
+125,9
@@
int cpu_post_test_cmp (void)
}
}
}
}
+ if (flag)
+ enable_interrupts();
+
return ret;
}
return ret;
}