Skip to content

Commit

Permalink
microblaze: Remove additional loading
Browse files Browse the repository at this point in the history
We don't need to save r0 to PT_R0. It could be additional
operation.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed Aug 4, 2010
1 parent 653e447 commit 40eb0dc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/microblaze/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,6 @@ C_ENTRY(sys_rt_sigreturn_wrapper):
lwi r11, r0, TOPHYS(PER_CPU(ENTRY_SP)); \
swi r11, r1, PTO+PT_R1; /* Store user SP. */ \
2: lwi CURRENT_TASK, r0, TOPHYS(PER_CPU(CURRENT_SAVE)); \
/* Save away the syscall number. */ \
swi r0, r1, PTO+PT_R0; \
tovirt(r1,r1)

C_ENTRY(full_exception_trap):
Expand Down Expand Up @@ -753,7 +751,6 @@ C_ENTRY(_interrupt):
swi r11, r1, PTO+PT_R1;
2:
lwi CURRENT_TASK, r0, TOPHYS(PER_CPU(CURRENT_SAVE));
swi r0, r1, PTO + PT_R0;
tovirt(r1,r1)
addik r5, r1, PTO;
set_vms;
Expand Down Expand Up @@ -868,8 +865,6 @@ C_ENTRY(_debug_exception):
lwi r11, r0, TOPHYS(PER_CPU(ENTRY_SP));
swi r11, r1, PTO+PT_R1; /* Store user SP. */
2:
/* Save away the syscall number. */
swi r0, r1, PTO+PT_R0;
tovirt(r1,r1)

set_vms;
Expand Down

0 comments on commit 40eb0dc

Please sign in to comment.