mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/native: return _native_retval with NATIVE_AUTO_EXIT
This commit is contained in:
parent
30840861c9
commit
5164a6cc59
@ -184,8 +184,9 @@ void cpu_switch_context_exit(void)
|
||||
{
|
||||
#ifdef NATIVE_AUTO_EXIT
|
||||
if (sched_num_threads <= 1) {
|
||||
extern unsigned _native_retval;
|
||||
DEBUG("cpu_switch_context_exit: last task has ended. exiting.\n");
|
||||
real_exit(EXIT_SUCCESS);
|
||||
real_exit(_native_retval);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user