Skip to content

Commit

Permalink
score: move save arg5 and arg6 instruction in front of enable_irq
Browse files Browse the repository at this point in the history
Because enable_irq clobber r8 before arg5 was saved.

	modified:   arch/score/kernel/entry.S

Signed-off-by: Chen Liqin <liqin.chen@sunplusct.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Chen Liqin authored and Arnd Bergmann committed Jun 22, 2009
1 parent 2f476ef commit e831a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/score/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -395,13 +395,13 @@ ENTRY(resume)

ENTRY(handle_sys)
SAVE_ALL
sw r8, [r0, 16] # argument 5 from user r8
sw r9, [r0, 20] # argument 6 from user r9
enable_irq

sw r4, [r0, PT_ORIG_R4] #for restart syscall
sw r7, [r0, PT_ORIG_R7] #for restart syscall
sw r27, [r0, PT_IS_SYSCALL] # it from syscall
sw r8, [r0, 16] # argument 5 from user r8
sw r9, [r0, 20] # argument 6 from user r9

lw r9, [r0, PT_EPC] # skip syscall on return
addi r9, 4
Expand Down

0 comments on commit e831a9c

Please sign in to comment.