Commit a4a94dbf authored by Michal Simek's avatar Michal Simek

microblaze: Fix VM_ON and VM_OFF macros

Jump behind macro. We don't want to execute nop instruction again.
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent ca28b510
......@@ -180,15 +180,17 @@
/* turn on virtual protected mode save */
#define VM_ON \
set_ums; \
set_ums; \
rted r0, 2f; \
2: nop;
nop; \
2:
/* turn off virtual protected mode save and user mode save*/
#define VM_OFF \
clear_vms_ums; \
clear_vms_ums; \
rted r0, TOPHYS(1f); \
1: nop;
nop; \
1:
#define SAVE_REGS \
swi r2, r1, PTO+PT_R2; /* Save SDA */ \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment