syscall: implement Exit call on unix

This commit is contained in:
Ayke van Laethem
2019-05-26 19:35:12 +02:00
committed by Ron Evans
parent 94b8214529
commit 0f2dcba7b3
+8
View File
@@ -18,6 +18,9 @@ func malloc(size uintptr) unsafe.Pointer
//go:export abort
func abort()
//go:export exit
func exit(code int)
//go:export clock_gettime
func clock_gettime(clk_id uint, ts *timespec)
@@ -75,3 +78,8 @@ func monotime() uint64 {
func ticks() timeUnit {
return timeUnit(monotime())
}
//go:linkname syscall_Exit syscall.Exit
func syscall_Exit(code int) {
exit(code)
}