trap.c (111535) | trap.c (111585) |
---|---|
1/*- 2 * Copyright (C) 1994, David Greenman 3 * Copyright (c) 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the University of Utah, and William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 | 1/*- 2 * Copyright (C) 1994, David Greenman 3 * Copyright (c) 1990, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the University of Utah, and William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)trap.c 7.4 (Berkeley) 5/13/91 |
38 * $FreeBSD: head/sys/i386/i386/trap.c 111535 2003-02-26 05:47:25Z davidxu $ | 38 * $FreeBSD: head/sys/i386/i386/trap.c 111585 2003-02-27 02:05:19Z julian $ |
39 */ 40 41/* 42 * 386 Trap and System call handling 43 */ 44 45#include "opt_clock.h" 46#include "opt_cpu.h" --- 906 unchanged lines hidden (view full) --- 953 mtx_unlock(&Giant); 954 } 955#endif 956 957 sticks = td->td_sticks; 958 td->td_frame = &frame; 959 if (td->td_ucred != p->p_ucred) 960 cred_update_thread(td); | 39 */ 40 41/* 42 * 386 Trap and System call handling 43 */ 44 45#include "opt_clock.h" 46#include "opt_cpu.h" --- 906 unchanged lines hidden (view full) --- 953 mtx_unlock(&Giant); 954 } 955#endif 956 957 sticks = td->td_sticks; 958 td->td_frame = &frame; 959 if (td->td_ucred != p->p_ucred) 960 cred_update_thread(td); |
961 if (p->p_flag & P_KSES) | 961 if (p->p_flag & P_THREADED) |
962 thread_user_enter(p, td); 963 params = (caddr_t)frame.tf_esp + sizeof(int); 964 code = frame.tf_eax; 965 orig_tf_eflags = frame.tf_eflags; 966 967 if (p->p_sysent->sv_prepsyscall) { 968 /* 969 * The prep code is MP aware. --- 138 unchanged lines hidden --- | 962 thread_user_enter(p, td); 963 params = (caddr_t)frame.tf_esp + sizeof(int); 964 code = frame.tf_eax; 965 orig_tf_eflags = frame.tf_eflags; 966 967 if (p->p_sysent->sv_prepsyscall) { 968 /* 969 * The prep code is MP aware. --- 138 unchanged lines hidden --- |