mips{,64,n32}: Call exit on return from fn in __clone

Submitted by Segev Finer on Aug. 15, 2018, 5:46 p.m.

Details

Reviewer None
Submitted Aug. 15, 2018, 5:46 p.m.
Last Updated Aug. 16, 2018, 8:19 a.m.
Revision 1

Cover Letter

This is the expected behavior of this function.  Without this the child
task will crash on return from fn, since it will return to nowhere.

I only tested MIPS O32.

Segev Finer (3):
  mips: Call exit on return from fn in __clone
  mips64: Call exit on return from fn in __clone
  mipsn32: Call exit on return from fn in __clone

 src/thread/mips/clone.s    | 5 ++++-
 src/thread/mips64/clone.s  | 5 ++++-
 src/thread/mipsn32/clone.s | 5 ++++-
 3 files changed, 12 insertions(+), 3 deletions(-)

--
2.18.0
  

Revisions