summaryrefslogtreecommitdiff
path: root/post/lib_ppc/cr.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2008-08-06 14:05:38 +0200
committerStefan Roese <sr@denx.de>2008-08-06 14:05:38 +0200
commitf2302d4430e7f3f48308d6a585320fe96af8afbd (patch)
treeeec529fa883a32b0bd44f65aa46a454dc5c69688 /post/lib_ppc/cr.c
parent9246f5ecfd353ae297a02ffd5328402acf16c9dd (diff)
downloadu-boot-f2302d4430e7f3f48308d6a585320fe96af8afbd.tar.gz
u-boot-f2302d4430e7f3f48308d6a585320fe96af8afbd.tar.bz2
u-boot-f2302d4430e7f3f48308d6a585320fe96af8afbd.zip
Fix merge problems
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'post/lib_ppc/cr.c')
-rw-r--r--post/lib_ppc/cr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/post/lib_ppc/cr.c b/post/lib_ppc/cr.c
index 0bd9e748f2..2c7976ac31 100644
--- a/post/lib_ppc/cr.c
+++ b/post/lib_ppc/cr.c
@@ -248,6 +248,7 @@ int cpu_post_test_cr (void)
int ret = 0;
unsigned int i;
unsigned long cr_sav;
+ int flag = disable_interrupts();
asm ( "mfcr %0" : "=r" (cr_sav) : );
@@ -347,6 +348,9 @@ int cpu_post_test_cr (void)
asm ( "mtcr %0" : : "r" (cr_sav));
+ if (flag)
+ enable_interrupts();
+
return ret;
}