ia32_signal.c (163058) | ia32_signal.c (205642) |
---|---|
1/*- 2 * Copyright (c) 2002 Doug Rabson 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Doug Rabson 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/ia64/ia32/ia32_signal.c 163058 2006-10-06 19:33:44Z marcel $"); | 28__FBSDID("$FreeBSD: head/sys/ia64/ia32/ia32_signal.c 205642 2010-03-25 14:24:00Z nwhitehorn $"); |
29 30#include "opt_compat.h" 31 32#define __ELF_WORD_SIZE 32 33 34#include <sys/param.h> 35#include <sys/exec.h> 36#include <sys/fcntl.h> --- 78 unchanged lines hidden (view full) --- 115int 116freebsd32_sigreturn(struct thread *td, struct freebsd32_sigreturn_args *uap) 117{ 118 return (sigreturn(td, (struct sigreturn_args *)uap)); 119} 120 121 122void | 29 30#include "opt_compat.h" 31 32#define __ELF_WORD_SIZE 32 33 34#include <sys/param.h> 35#include <sys/exec.h> 36#include <sys/fcntl.h> --- 78 unchanged lines hidden (view full) --- 115int 116freebsd32_sigreturn(struct thread *td, struct freebsd32_sigreturn_args *uap) 117{ 118 return (sigreturn(td, (struct sigreturn_args *)uap)); 119} 120 121 122void |
123ia32_setregs(struct thread *td, u_long entry, u_long stack, u_long ps_strings) | 123ia32_setregs(struct thread *td, struct image_params *imgp, u_long stack) |
124{ 125 struct trapframe *tf = td->td_frame; 126 vm_offset_t gdt, ldt; 127 u_int64_t codesel, datasel, ldtsel; 128 u_int64_t codeseg, dataseg, gdtseg, ldtseg; 129 struct segment_descriptor desc; 130 struct vmspace *vmspace = td->td_proc->p_vmspace; 131 | 124{ 125 struct trapframe *tf = td->td_frame; 126 vm_offset_t gdt, ldt; 127 u_int64_t codesel, datasel, ldtsel; 128 u_int64_t codeseg, dataseg, gdtseg, ldtseg; 129 struct segment_descriptor desc; 130 struct vmspace *vmspace = td->td_proc->p_vmspace; 131 |
132 exec_setregs(td, entry, stack, ps_strings); | 132 exec_setregs(td, imgp, stack); |
133 134 /* Non-syscall frames are cleared by exec_setregs() */ 135 if (tf->tf_flags & FRAME_SYSCALL) { 136 bzero(&tf->tf_scratch, sizeof(tf->tf_scratch)); 137 bzero(&tf->tf_scratch_fp, sizeof(tf->tf_scratch_fp)); 138 } else 139 tf->tf_special.ndirty = 0; 140 --- 147 unchanged lines hidden --- | 133 134 /* Non-syscall frames are cleared by exec_setregs() */ 135 if (tf->tf_flags & FRAME_SYSCALL) { 136 bzero(&tf->tf_scratch, sizeof(tf->tf_scratch)); 137 bzero(&tf->tf_scratch_fp, sizeof(tf->tf_scratch_fp)); 138 } else 139 tf->tf_special.ndirty = 0; 140 --- 147 unchanged lines hidden --- |