diff options
author | Michal Simek <monstr@monstr.eu> | 2010-06-22 14:49:46 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-08-04 04:45:14 -0400 |
commit | 0a6b08fda6e3229713e779e30028598c067e904d (patch) | |
tree | 95e854f09fec88bc6bb0f42c5cc4da89dd34c8ea /arch/microblaze | |
parent | 80c5ff6b9b2dd9a2e99d3d6f74df5e6f888d43e9 (diff) |
microblaze: Move PT_MODE saving to delay slot
We can save one more instruction if PT_MODE is saved in delay slot
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/kernel/entry.S | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/microblaze/kernel/entry.S b/arch/microblaze/kernel/entry.S index f4fda8578551..6c117ceaabea 100644 --- a/arch/microblaze/kernel/entry.S +++ b/arch/microblaze/kernel/entry.S | |||
@@ -728,10 +728,8 @@ C_ENTRY(_interrupt): | |||
728 | /* MS: Make room on the stack -> activation record */ | 728 | /* MS: Make room on the stack -> activation record */ |
729 | addik r1, r1, -STATE_SAVE_SIZE; | 729 | addik r1, r1, -STATE_SAVE_SIZE; |
730 | SAVE_REGS | 730 | SAVE_REGS |
731 | swi r1, r1, PTO + PT_MODE; /* 0 - user mode, 1 - kernel mode */ | ||
732 | brid 2f; | 731 | brid 2f; |
733 | nop; /* MS: Fill delay slot */ | 732 | swi r1, r1, PTO + PT_MODE; /* 0 - user mode, 1 - kernel mode */ |
734 | |||
735 | 1: | 733 | 1: |
736 | /* User-mode state save. */ | 734 | /* User-mode state save. */ |
737 | /* MS: get the saved current */ | 735 | /* MS: get the saved current */ |