mirror of
https://github.com/Fennix-Project/Userspace.git
synced 2025-05-28 15:34:26 +00:00
21 lines
363 B
C
21 lines
363 B
C
|
|
extern void __libc_init_array(void);
|
|
extern void __libc_fini_array(void);
|
|
|
|
void __libc_init(void)
|
|
{
|
|
__libc_init_array();
|
|
}
|
|
|
|
void _exit(int Code)
|
|
{
|
|
__libc_fini_array();
|
|
__asm__ __volatile__("syscall"
|
|
:
|
|
: "a"(0), "D"(Code)
|
|
: "rcx", "r11", "memory");
|
|
|
|
while (1)
|
|
;
|
|
}
|