insmod: not available on aarch64 yet

This commit is contained in:
K. Lange 2022-01-30 21:35:46 +09:00
parent 78196ef5b6
commit c3311fe272

View File

@ -98,7 +98,10 @@ long sys_sysfunc(long fn, char ** args) {
case TOARU_SYS_FUNC_INSMOD:
/* Linux has init_module as a system call? */
if (this_core->current_process->user != 0) return -EACCES;
#if defined(__aarch64__)
/* TODO: Most modules are not right for this and we are missing relocations */
return -EINVAL;
#endif
PTR_VALIDATE(args);
if (!args) return -EFAULT;
PTR_VALIDATE(args[0]);