kern_exec.c (f4e26adefcdf9bb2366b1a04d76c72814325c24f) | kern_exec.c (a107d8aac915c953c658426eb0d15c5067dafa60) |
---|---|
1/*- 2 * Copyright (c) 1993, David Greenman 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 --- 785 unchanged lines hidden (view full) --- 794 } else 795 PROC_UNLOCK(p); 796#else /* !HWPMC_HOOKS */ 797 PROC_UNLOCK(p); 798#endif 799 800 /* Set values passed into the program in registers. */ 801 if (p->p_sysent->sv_setregs) | 1/*- 2 * Copyright (c) 1993, David Greenman 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 --- 785 unchanged lines hidden (view full) --- 794 } else 795 PROC_UNLOCK(p); 796#else /* !HWPMC_HOOKS */ 797 PROC_UNLOCK(p); 798#endif 799 800 /* Set values passed into the program in registers. */ 801 if (p->p_sysent->sv_setregs) |
802 (*p->p_sysent->sv_setregs)(td, imgp->entry_addr, 803 (u_long)(uintptr_t)stack_base, imgp->ps_strings); | 802 (*p->p_sysent->sv_setregs)(td, imgp, 803 (u_long)(uintptr_t)stack_base); |
804 else | 804 else |
805 exec_setregs(td, imgp->entry_addr, 806 (u_long)(uintptr_t)stack_base, imgp->ps_strings); | 805 exec_setregs(td, imgp, (u_long)(uintptr_t)stack_base); |
807 808 vfs_mark_atime(imgp->vp, td->td_ucred); 809 810 SDT_PROBE(proc, kernel, , exec_success, args->fname, 0, 0, 0, 0); 811 812done1: 813 /* 814 * Free any resources malloc'd earlier that we didn't use. --- 612 unchanged lines hidden --- | 806 807 vfs_mark_atime(imgp->vp, td->td_ucred); 808 809 SDT_PROBE(proc, kernel, , exec_success, args->fname, 0, 0, 0, 0); 810 811done1: 812 /* 813 * Free any resources malloc'd earlier that we didn't use. --- 612 unchanged lines hidden --- |