linux_sysvec.c (bb59e63f8f7855080ced1f61ef8e1bf43498c3bc) | linux_sysvec.c (357afa71139263ad214da3ceea164c974129735c) |
---|---|
1/*- 2 * Copyright (c) 1994-1996 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 903 unchanged lines hidden (view full) --- 912 ++brandinfo) 913 if (elf32_insert_brand_entry(*brandinfo) < 0) 914 error = EINVAL; 915 if (error == 0) { 916 SET_FOREACH(lihp, linux_ioctl_handler_set) 917 linux_ioctl_register_handler(*lihp); 918 SET_FOREACH(ldhp, linux_device_handler_set) 919 linux_device_register_handler(*ldhp); | 1/*- 2 * Copyright (c) 1994-1996 S�ren Schmidt 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 903 unchanged lines hidden (view full) --- 912 ++brandinfo) 913 if (elf32_insert_brand_entry(*brandinfo) < 0) 914 error = EINVAL; 915 if (error == 0) { 916 SET_FOREACH(lihp, linux_ioctl_handler_set) 917 linux_ioctl_register_handler(*lihp); 918 SET_FOREACH(ldhp, linux_device_handler_set) 919 linux_device_register_handler(*ldhp); |
920 sx_init(&emul_lock, "emuldata lock"); | 920 mtx_init(&emul_lock, "emuldata lock", NULL, MTX_DEF); |
921 sx_init(&emul_shared_lock, "emuldata->shared lock"); 922 LIST_INIT(&futex_list); 923 sx_init(&futex_sx, "futex protection lock"); 924 linux_exit_tag = EVENTHANDLER_REGISTER(process_exit, linux_proc_exit, 925 NULL, 1000); 926 linux_schedtail_tag = EVENTHANDLER_REGISTER(schedtail, linux_schedtail, 927 NULL, 1000); 928 linux_exec_tag = EVENTHANDLER_REGISTER(process_exec, linux_proc_exec, --- 14 unchanged lines hidden (view full) --- 943 if (elf32_remove_brand_entry(*brandinfo) < 0) 944 error = EINVAL; 945 } 946 if (error == 0) { 947 SET_FOREACH(lihp, linux_ioctl_handler_set) 948 linux_ioctl_unregister_handler(*lihp); 949 SET_FOREACH(ldhp, linux_device_handler_set) 950 linux_device_unregister_handler(*ldhp); | 921 sx_init(&emul_shared_lock, "emuldata->shared lock"); 922 LIST_INIT(&futex_list); 923 sx_init(&futex_sx, "futex protection lock"); 924 linux_exit_tag = EVENTHANDLER_REGISTER(process_exit, linux_proc_exit, 925 NULL, 1000); 926 linux_schedtail_tag = EVENTHANDLER_REGISTER(schedtail, linux_schedtail, 927 NULL, 1000); 928 linux_exec_tag = EVENTHANDLER_REGISTER(process_exec, linux_proc_exec, --- 14 unchanged lines hidden (view full) --- 943 if (elf32_remove_brand_entry(*brandinfo) < 0) 944 error = EINVAL; 945 } 946 if (error == 0) { 947 SET_FOREACH(lihp, linux_ioctl_handler_set) 948 linux_ioctl_unregister_handler(*lihp); 949 SET_FOREACH(ldhp, linux_device_handler_set) 950 linux_device_unregister_handler(*ldhp); |
951 sx_destroy(&emul_lock); | 951 mtx_destroy(&emul_lock); |
952 sx_destroy(&emul_shared_lock); 953 sx_destroy(&futex_sx); 954 EVENTHANDLER_DEREGISTER(process_exit, linux_exit_tag); 955 EVENTHANDLER_DEREGISTER(schedtail, linux_schedtail_tag); 956 EVENTHANDLER_DEREGISTER(process_exec, linux_exec_tag); 957 if (bootverbose) 958 printf("Linux ELF exec handler removed\n"); 959 } else --- 15 unchanged lines hidden --- | 952 sx_destroy(&emul_shared_lock); 953 sx_destroy(&futex_sx); 954 EVENTHANDLER_DEREGISTER(process_exit, linux_exit_tag); 955 EVENTHANDLER_DEREGISTER(schedtail, linux_schedtail_tag); 956 EVENTHANDLER_DEREGISTER(process_exec, linux_exec_tag); 957 if (bootverbose) 958 printf("Linux ELF exec handler removed\n"); 959 } else --- 15 unchanged lines hidden --- |