summaryrefslogtreecommitdiff
path: root/post/lib_ppc/store.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/lib_ppc/store.c')
-rw-r--r--post/lib_ppc/store.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/post/lib_ppc/store.c b/post/lib_ppc/store.c
index 09ec485..c96f263 100644
--- a/post/lib_ppc/store.c
+++ b/post/lib_ppc/store.c
@@ -163,6 +163,7 @@ int cpu_post_test_store (void)
{
int ret = 0;
unsigned int i;
+ int flag = disable_interrupts();
for (i = 0; i < cpu_post_store_size && ret == 0; i++)
{
@@ -226,6 +227,9 @@ int cpu_post_test_store (void)
}
}
+ if (flag)
+ enable_interrupts();
+
return ret;
}