linux32_sysvec.c (9c5b213e51c6921e23f89395cb44d18ed26dc0d2) linux32_sysvec.c (357afa71139263ad214da3ceea164c974129735c)
1/*-
2 * Copyright (c) 2004 Tim J. Robbins
3 * Copyright (c) 2003 Peter Wemm
4 * Copyright (c) 2002 Doug Rabson
5 * Copyright (c) 1998-1999 Andrew Gallatin
6 * Copyright (c) 1994-1996 S�ren Schmidt
7 * All rights reserved.
8 *

--- 1067 unchanged lines hidden (view full) ---

1076 ++brandinfo)
1077 if (elf32_insert_brand_entry(*brandinfo) < 0)
1078 error = EINVAL;
1079 if (error == 0) {
1080 SET_FOREACH(lihp, linux_ioctl_handler_set)
1081 linux_ioctl_register_handler(*lihp);
1082 SET_FOREACH(ldhp, linux_device_handler_set)
1083 linux_device_register_handler(*ldhp);
1/*-
2 * Copyright (c) 2004 Tim J. Robbins
3 * Copyright (c) 2003 Peter Wemm
4 * Copyright (c) 2002 Doug Rabson
5 * Copyright (c) 1998-1999 Andrew Gallatin
6 * Copyright (c) 1994-1996 S�ren Schmidt
7 * All rights reserved.
8 *

--- 1067 unchanged lines hidden (view full) ---

1076 ++brandinfo)
1077 if (elf32_insert_brand_entry(*brandinfo) < 0)
1078 error = EINVAL;
1079 if (error == 0) {
1080 SET_FOREACH(lihp, linux_ioctl_handler_set)
1081 linux_ioctl_register_handler(*lihp);
1082 SET_FOREACH(ldhp, linux_device_handler_set)
1083 linux_device_register_handler(*ldhp);
1084 sx_init(&emul_lock, "emuldata lock");
1084 mtx_init(&emul_lock, "emuldata lock", NULL, MTX_DEF);
1085 sx_init(&emul_shared_lock, "emuldata->shared lock");
1086 LIST_INIT(&futex_list);
1087 sx_init(&futex_sx, "futex protection lock");
1088 linux_exit_tag = EVENTHANDLER_REGISTER(process_exit, linux_proc_exit,
1089 NULL, 1000);
1090 linux_schedtail_tag = EVENTHANDLER_REGISTER(schedtail, linux_schedtail,
1091 NULL, 1000);
1092 linux_exec_tag = EVENTHANDLER_REGISTER(process_exec, linux_proc_exec,

--- 14 unchanged lines hidden (view full) ---

1107 if (elf32_remove_brand_entry(*brandinfo) < 0)
1108 error = EINVAL;
1109 }
1110 if (error == 0) {
1111 SET_FOREACH(lihp, linux_ioctl_handler_set)
1112 linux_ioctl_unregister_handler(*lihp);
1113 SET_FOREACH(ldhp, linux_device_handler_set)
1114 linux_device_unregister_handler(*ldhp);
1085 sx_init(&emul_shared_lock, "emuldata->shared lock");
1086 LIST_INIT(&futex_list);
1087 sx_init(&futex_sx, "futex protection lock");
1088 linux_exit_tag = EVENTHANDLER_REGISTER(process_exit, linux_proc_exit,
1089 NULL, 1000);
1090 linux_schedtail_tag = EVENTHANDLER_REGISTER(schedtail, linux_schedtail,
1091 NULL, 1000);
1092 linux_exec_tag = EVENTHANDLER_REGISTER(process_exec, linux_proc_exec,

--- 14 unchanged lines hidden (view full) ---

1107 if (elf32_remove_brand_entry(*brandinfo) < 0)
1108 error = EINVAL;
1109 }
1110 if (error == 0) {
1111 SET_FOREACH(lihp, linux_ioctl_handler_set)
1112 linux_ioctl_unregister_handler(*lihp);
1113 SET_FOREACH(ldhp, linux_device_handler_set)
1114 linux_device_unregister_handler(*ldhp);
1115 sx_destroy(&emul_lock);
1115 mtx_destroy(&emul_lock);
1116 sx_destroy(&emul_shared_lock);
1117 sx_destroy(&futex_sx);
1118 EVENTHANDLER_DEREGISTER(process_exit, linux_exit_tag);
1119 EVENTHANDLER_DEREGISTER(schedtail, linux_schedtail_tag);
1120 EVENTHANDLER_DEREGISTER(process_exec, linux_exec_tag);
1121 if (bootverbose)
1122 printf("Linux ELF exec handler removed\n");
1123 } else

--- 15 unchanged lines hidden ---
1116 sx_destroy(&emul_shared_lock);
1117 sx_destroy(&futex_sx);
1118 EVENTHANDLER_DEREGISTER(process_exit, linux_exit_tag);
1119 EVENTHANDLER_DEREGISTER(schedtail, linux_schedtail_tag);
1120 EVENTHANDLER_DEREGISTER(process_exec, linux_exec_tag);
1121 if (bootverbose)
1122 printf("Linux ELF exec handler removed\n");
1123 } else

--- 15 unchanged lines hidden ---