Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/linux/linux_sysvec.c
Show First 20 Lines • Show All 658 Lines • ▼ Show 20 Lines | if (error == 0) { | ||||
*brandinfo != NULL; ++brandinfo) | *brandinfo != NULL; ++brandinfo) | ||||
if (elf64_remove_brand_entry(*brandinfo) < 0) | if (elf64_remove_brand_entry(*brandinfo) < 0) | ||||
error = EINVAL; | error = EINVAL; | ||||
} | } | ||||
if (error == 0) { | if (error == 0) { | ||||
SET_FOREACH(lihp, linux_ioctl_handler_set) | SET_FOREACH(lihp, linux_ioctl_handler_set) | ||||
linux_ioctl_unregister_handler(*lihp); | linux_ioctl_unregister_handler(*lihp); | ||||
if (bootverbose) | if (bootverbose) | ||||
printf("Linux ELF exec handler removed\n"); | printf("Linux arm64 ELF exec handler removed\n"); | ||||
} else | } else | ||||
printf("Could not deinstall ELF interpreter entry\n"); | printf("Could not deinstall Linux arm64 ELF interpreter entry\n"); | ||||
break; | break; | ||||
default: | default: | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
} | } | ||||
return (error); | return (error); | ||||
} | } | ||||
static moduledata_t linux64_elf_mod = { | static moduledata_t linux64_elf_mod = { | ||||
"linux64elf", | "linux64elf", | ||||
linux64_elf_modevent, | linux64_elf_modevent, | ||||
0 | 0 | ||||
}; | }; | ||||
DECLARE_MODULE_TIED(linux64elf, linux64_elf_mod, SI_SUB_EXEC, SI_ORDER_ANY); | DECLARE_MODULE_TIED(linux64elf, linux64_elf_mod, SI_SUB_EXEC, SI_ORDER_ANY); | ||||
MODULE_DEPEND(linux64elf, linux_common, 1, 1, 1); | MODULE_DEPEND(linux64elf, linux_common, 1, 1, 1); | ||||
FEATURE(linux64, "AArch64 Linux 64bit support"); | FEATURE(linux64, "AArch64 Linux 64bit support"); |