Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336243
b: refs/heads/master
c: c90e6fb
h: refs/heads/master
i:
  336241: 115bf33
  336239: 19ea42d
v: v3
  • Loading branch information
Dmitry Adamushko authored and Ralf Baechle committed Dec 5, 2012
1 parent 46b9acd commit da85f85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2d33976fb395a5b9cb00f2c24132b3f272eb9a9d
refs/heads/master: c90e6fbb220d44988cb65af3707367c57cdb65a8
7 changes: 6 additions & 1 deletion trunk/arch/mips/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ FEXPORT(ret_from_exception)
FEXPORT(ret_from_irq)
LONG_S s0, TI_REGS($28)
FEXPORT(__ret_from_irq)
/*
* We can be coming here from a syscall done in the kernel space,
* e.g. a failed kernel_execve().
*/
resume_userspace_check:
LONG_L t0, PT_STATUS(sp) # returning to kernel mode?
andi t0, t0, KU_USER
beqz t0, resume_kernel
Expand Down Expand Up @@ -162,7 +167,7 @@ work_notifysig: # deal with pending signals and
move a0, sp
li a1, 0
jal do_notify_resume # a2 already loaded
j resume_userspace
j resume_userspace_check

FEXPORT(syscall_exit_partial)
local_irq_disable # make sure need_resched doesn't
Expand Down

0 comments on commit da85f85

Please sign in to comment.