support application.

This commit is contained in:
root
2023-08-22 00:26:34 +08:00
parent 56e53a1eae
commit 6ee0deb010
56 changed files with 440 additions and 98 deletions

View File

@@ -9,5 +9,5 @@ void sys_call_init(void)
uintptr_t a = (uintptr_t)&__init_array_start;
for (; a < (uintptr_t)&__init_array_end; a += sizeof(void (*)()))
(*(void (**)(void))a)();
((init_func)(*(uintptr_t *)a))();
}