summaryrefslogtreecommitdiff
path: root/post/lib_ppc/cmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/lib_ppc/cmp.c')
-rw-r--r--post/lib_ppc/cmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/post/lib_ppc/cmp.c b/post/lib_ppc/cmp.c
index 8d80f86aa..13809d417 100644
--- a/post/lib_ppc/cmp.c
+++ b/post/lib_ppc/cmp.c
@@ -102,6 +102,7 @@ int cpu_post_test_cmp (void)
{
int ret = 0;
unsigned int i;
+ int flag = disable_interrupts();
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;
}