Deleted Added
full compact
ia32_syscall.c (165303) ia32_syscall.c (170291)
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 *

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

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
38#include <sys/cdefs.h>
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 *

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

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
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/sys/amd64/ia32/ia32_syscall.c 165303 2006-12-17 06:48:40Z kmacy $");
39__FBSDID("$FreeBSD: head/sys/amd64/ia32/ia32_syscall.c 170291 2007-06-04 21:38:48Z attilio $");
40
41/*
42 * 386 Trap and System call handling
43 */
44
45#include "opt_clock.h"
46#include "opt_cpu.h"
47#include "opt_isa.h"

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

100 int error;
101 int narg;
102 u_int32_t args[8];
103 u_int64_t args64[8];
104 u_int code;
105 ksiginfo_t ksi;
106
107 /*
40
41/*
42 * 386 Trap and System call handling
43 */
44
45#include "opt_clock.h"
46#include "opt_cpu.h"
47#include "opt_isa.h"

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

100 int error;
101 int narg;
102 u_int32_t args[8];
103 u_int64_t args64[8];
104 u_int code;
105 ksiginfo_t ksi;
106
107 /*
108 * note: PCPU_LAZY_INC() can only be used if we can afford
108 * note: PCPU_INC() can only be used if we can afford
109 * occassional inaccuracy in the count.
110 */
109 * occassional inaccuracy in the count.
110 */
111 PCPU_LAZY_INC(cnt.v_syscall);
111 PCPU_INC(cnt.v_syscall);
112
113 td->td_pticks = 0;
114 td->td_frame = frame;
115 if (td->td_ucred != p->p_ucred)
116 cred_update_thread(td);
117 params = (caddr_t)frame->tf_rsp + sizeof(u_int32_t);
118 code = frame->tf_rax;
119 orig_tf_rflags = frame->tf_rflags;

--- 165 unchanged lines hidden ---
112
113 td->td_pticks = 0;
114 td->td_frame = frame;
115 if (td->td_ucred != p->p_ucred)
116 cred_update_thread(td);
117 params = (caddr_t)frame->tf_rsp + sizeof(u_int32_t);
118 code = frame->tf_rax;
119 orig_tf_rflags = frame->tf_rflags;

--- 165 unchanged lines hidden ---