Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4a94dbf authored by Michal Simek's avatar Michal Simek
Browse files

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
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -182,13 +182,15 @@
#define VM_ON		\
	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;		\
	rted	r0, TOPHYS(1f);	\
1: nop;
	nop; \
1:

#define SAVE_REGS \
	swi	r2, r1, PTO+PT_R2;	/* Save SDA */			\