summaryrefslogtreecommitdiff
path: root/post/lib_ppc/cmpi.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/lib_ppc/cmpi.c')
-rw-r--r--post/lib_ppc/cmpi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/post/lib_ppc/cmpi.c b/post/lib_ppc/cmpi.c
index 92b4d57b1f..5ecfe872a4 100644
--- a/post/lib_ppc/cmpi.c
+++ b/post/lib_ppc/cmpi.c
@@ -102,6 +102,7 @@ int cpu_post_test_cmpi (void)
{
int ret = 0;
unsigned int i;
+ int flag = disable_interrupts();
for (i = 0; i < cpu_post_cmpi_size && ret == 0; i++)
{
@@ -124,6 +125,9 @@ int cpu_post_test_cmpi (void)
}
}
+ if (flag)
+ enable_interrupts();
+
return ret;
}