summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-02-07 10:30:45 +0100
committerMichal Simek <monstr@monstr.eu>2011-02-15 15:13:24 +0100
commitb777a37c29f547f647ead4578f88f4bcfad52b10 (patch)
tree3b04cfe9324acea285a2037325889ca9552cd537 /arch
parentc65715de780945950d570e2b69f94e0b186f04b4 (diff)
downloadblackbird-obmc-uboot-b777a37c29f547f647ead4578f88f4bcfad52b10.tar.gz
blackbird-obmc-uboot-b777a37c29f547f647ead4578f88f4bcfad52b10.zip
microblaze: Fix systems with MSR=0
u-boot BSP generates XILINX_USE_MSR_INSTR macro even for system with MSR=0. That's why explicitly check that MSR=1. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch')
-rw-r--r--arch/microblaze/include/asm/asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/asm.h b/arch/microblaze/include/asm/asm.h
index deb23e094a..c89e90438f 100644
--- a/arch/microblaze/include/asm/asm.h
+++ b/arch/microblaze/include/asm/asm.h
@@ -62,7 +62,7 @@
#define NOP __asm__ __volatile__ ("nop");
/* use machine status registe USE_MSR_REG */
-#ifdef XILINX_USE_MSR_INSTR
+#if XILINX_USE_MSR_INSTR == 1
#define MSRSET(val) \
__asm__ __volatile__ ("msrset r0," #val );
OpenPOWER on IntegriCloud