mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Forgot the amd/linux32 part since sys/*/linux didn't match :-(
Pointed out by: Alexander (thanks)
This commit is contained in:
parent
59b8854eee
commit
387196bf56
1 changed files with 6 additions and 0 deletions
|
|
@ -109,6 +109,7 @@ extern int linux_szsigcode;
|
|||
extern struct sysent linux_sysent[LINUX_SYS_MAXSYSCALL];
|
||||
|
||||
SET_DECLARE(linux_ioctl_handler_set, struct linux_ioctl_handler);
|
||||
SET_DECLARE(linux_device_handler_set, struct linux_device_handler);
|
||||
|
||||
static int elf_linux_fixup(register_t **stack_base,
|
||||
struct image_params *iparams);
|
||||
|
|
@ -1047,6 +1048,7 @@ linux_elf_modevent(module_t mod, int type, void *data)
|
|||
Elf32_Brandinfo **brandinfo;
|
||||
int error;
|
||||
struct linux_ioctl_handler **lihp;
|
||||
struct linux_device_handler **ldhp;
|
||||
|
||||
error = 0;
|
||||
|
||||
|
|
@ -1059,6 +1061,8 @@ linux_elf_modevent(module_t mod, int type, void *data)
|
|||
if (error == 0) {
|
||||
SET_FOREACH(lihp, linux_ioctl_handler_set)
|
||||
linux_ioctl_register_handler(*lihp);
|
||||
SET_FOREACH(ldhp, linux_device_handler_set)
|
||||
linux_device_register_handler(*ldhp);
|
||||
if (bootverbose)
|
||||
printf("Linux ELF exec handler installed\n");
|
||||
} else
|
||||
|
|
@ -1078,6 +1082,8 @@ linux_elf_modevent(module_t mod, int type, void *data)
|
|||
if (error == 0) {
|
||||
SET_FOREACH(lihp, linux_ioctl_handler_set)
|
||||
linux_ioctl_unregister_handler(*lihp);
|
||||
SET_FOREACH(ldhp, linux_device_handler_set)
|
||||
linux_device_unregister_handler(*ldhp);
|
||||
if (bootverbose)
|
||||
printf("Linux ELF exec handler removed\n");
|
||||
} else
|
||||
|
|
|
|||
Loading…
Reference in a new issue