Sfoglia il codice sorgente

microblaze: Fix VM_ON and VM_OFF macros

Jump behind macro. We don't want to execute nop instruction again.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Michal Simek 15 anni fa
parent
commit
a4a94dbf20
1 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  1. 6 4
      arch/microblaze/kernel/entry.S

+ 6 - 4
arch/microblaze/kernel/entry.S

@@ -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 */			\