Deleted Added
full compact
trap.c (227290) trap.c (227399)
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 *

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

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 */
39
40#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 *

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

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 */
39
40#include <sys/cdefs.h>
41__FBSDID("$FreeBSD: head/sys/amd64/amd64/trap.c 227290 2011-11-07 01:53:25Z rstone $");
41__FBSDID("$FreeBSD: head/sys/amd64/amd64/trap.c 227399 2011-11-09 18:25:50Z kib $");
42
43/*
44 * AMD64 Trap and System call handling
45 */
46
47#include "opt_clock.h"
48#include "opt_cpu.h"
49#include "opt_hwpmc_hooks.h"

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

895 }
896
897 return (error);
898}
899
900#include "../../kern/subr_syscall.c"
901
902/*
42
43/*
44 * AMD64 Trap and System call handling
45 */
46
47#include "opt_clock.h"
48#include "opt_cpu.h"
49#include "opt_hwpmc_hooks.h"

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

895 }
896
897 return (error);
898}
899
900#include "../../kern/subr_syscall.c"
901
902/*
903 * syscall - system call request C handler
904 *
905 * A system call is essentially treated as a trap.
903 * System call handler for native binaries. The trap frame is already
904 * set up by the assembler trampoline and a pointer to it is saved in
905 * td_frame.
906 */
907void
908amd64_syscall(struct thread *td, int traced)
909{
910 struct syscall_args sa;
911 int error;
912 ksiginfo_t ksi;
913

--- 29 unchanged lines hidden ---
906 */
907void
908amd64_syscall(struct thread *td, int traced)
909{
910 struct syscall_args sa;
911 int error;
912 ksiginfo_t ksi;
913

--- 29 unchanged lines hidden ---