Skip to content

Commit

Permalink
microblaze: Fix VM_ON and VM_OFF macros
Browse files Browse the repository at this point in the history
Jump behind macro. We don't want to execute nop instruction again.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed Aug 4, 2010
1 parent ca28b51 commit a4a94db
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions arch/microblaze/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ \
Expand Down

0 comments on commit a4a94db

Please sign in to comment.