Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/linux/linux_sysvec.c
Show First 20 Lines • Show All 1,034 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 x86_64 ELF exec handler removed\n"); | ||||
} else | } else | ||||
printf("Could not deinstall ELF interpreter entry\n"); | printf("Could not deinstall Linux x86_64 ELF interpreter entry\n"); | ||||
break; | break; | ||||
emaste: @imp relaxed the 80-col rule to allow "things that people grep for, such as error messages" to… | |||||
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, "Linux 64bit support"); | FEATURE(linux64, "Linux 64bit support"); |
@imp relaxed the 80-col rule to allow "things that people grep for, such as error messages" to go over (D30255) and I think these cases are good candidates for that.