Skip to content
Browse files

Use delay slots

  • Loading branch information...
1 parent 27fd5e7 commit 2e8f47e90654179fdc3196f712b0933188b1d8d3 @kpansky committed Mar 4, 2012
Showing with 6 additions and 14 deletions.
  1. +6 −14 ports/microblaze/atomport-asm.S
View
20 ports/microblaze/atomport-asm.S
@@ -159,21 +159,15 @@
in a critical section
*/
andi r31, r31, MSR_IE
- beqi r31, 1f
- nop
-
- /* Load the R31 and return */
+ beqid r31, 1f
lwi r31, r1, AC_R31
- addik r1, r1, AC_SIZE
+
rtid r15, 0
- nop
+ addik r1, r1, AC_SIZE
1:
- /* Load the R31 and return */
- lwi r31, r1, AC_R31
- addik r1, r1, AC_SIZE
rtsd r15, 0
- nop
+ addik r1, r1, AC_SIZE
.endm
@@ -249,9 +243,8 @@ archThreadContextInit:
lwi r15, r1, 0
lwi r19, r1, 4
- addik r1, r1, 8
rtsd r15, 8
- nop
+ addik r1, r1, 8
/**
* \b archFirstThreadRestore
@@ -350,6 +343,5 @@ archContextSwitch:
archContextSwitchReturn:
lwi r19, r1, 4
lwi r15, r1, 0
- addik r1, r1, 8
rtsd r15, 8
- nop
+ addik r1, r1, 8

0 comments on commit 2e8f47e

Please sign in to comment.
Something went wrong with that request. Please try again.