[kernel] Consolodate koid and close syscalls

A number of object types had _close or _koid syscalls. Moved those to be
generic for kobject.
This commit is contained in:
2020-10-05 21:51:42 -07:00
parent 1904e240cf
commit 97ea77bd27
18 changed files with 79 additions and 94 deletions

View File

@@ -1,4 +1,3 @@
#include "j6/signals.h"
#include "kutil/assert.h"
#include "kutil/no_construct.h"
#include "cpu.h"
@@ -62,7 +61,7 @@ process::exit(unsigned code)
thread->exit(code);
}
m_return_code = code;
assert_signal(j6_signal_process_exit);
close();
if (this == bsp_cpu_data.p)
scheduler::get().schedule();