summaryrefslogtreecommitdiff
path: root/post/lib_ppc/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/lib_ppc/load.c')
-rw-r--r--post/lib_ppc/load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/post/lib_ppc/load.c b/post/lib_ppc/load.c
index 86bc2234cf..eccebb7ca1 100644
--- a/post/lib_ppc/load.c
+++ b/post/lib_ppc/load.c
@@ -178,6 +178,7 @@ int cpu_post_test_load (void)
{
int ret = 0;
unsigned int i;
+ int flag = disable_interrupts();
for (i = 0; i < cpu_post_load_size && ret == 0; i++)
{
@@ -246,6 +247,9 @@ int cpu_post_test_load (void)
}
}
+ if (flag)
+ enable_interrupts();
+
return ret;
}