2020-02-05 21:09:39 +01:00
|
|
|
#include <kernel/scheduler.h>
|
2020-03-15 00:56:31 +01:00
|
|
|
#include <kernel/devices/earlyterm.h>
|
2020-02-05 21:09:39 +01:00
|
|
|
|
|
|
|
void sys_exit(int status)
|
|
|
|
{
|
2020-03-15 00:56:31 +01:00
|
|
|
// TODO handle status
|
|
|
|
(void)status;
|
|
|
|
|
|
|
|
// Fow now, just wait manual reset...
|
|
|
|
earlyterm_clear();
|
|
|
|
earlyterm_write("PROCESS EXIT SYSCALL !!!!");
|
|
|
|
earlyterm_write("Wait manual reset...");
|
2020-02-05 21:09:39 +01:00
|
|
|
while (1);
|
|
|
|
}
|