summaryrefslogtreecommitdiff
path: root/firmware/target/arm/system-pp502x.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/system-pp502x.c')
-rw-r--r--firmware/target/arm/system-pp502x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c
index 390c80d9fd..a699b3a38a 100644
--- a/firmware/target/arm/system-pp502x.c
+++ b/firmware/target/arm/system-pp502x.c
@@ -149,7 +149,7 @@ void scale_suspend_core(bool suspend)
149 149
150 if (suspend) 150 if (suspend)
151 { 151 {
152 oldstatus = set_interrupt_status(IRQ_FIQ_DISABLED, IRQ_FIQ_STATUS); 152 oldstatus = disable_interrupt_save(IRQ_FIQ_STATUS);
153 IF_COP( PROC_CTL(othercore) = 0x40000000; nop; ) 153 IF_COP( PROC_CTL(othercore) = 0x40000000; nop; )
154 PROC_CTL(core) = 0x48000003; nop; 154 PROC_CTL(core) = 0x48000003; nop;
155 } 155 }
@@ -157,7 +157,7 @@ void scale_suspend_core(bool suspend)
157 { 157 {
158 PROC_CTL(core) = 0x4800001f; nop; 158 PROC_CTL(core) = 0x4800001f; nop;
159 IF_COP( PROC_CTL(othercore) = 0x00000000; nop; ) 159 IF_COP( PROC_CTL(othercore) = 0x00000000; nop; )
160 set_interrupt_status(oldstatus, IRQ_FIQ_STATUS); 160 restore_interrupt(oldstatus);
161 } 161 }
162} 162}
163 163