Deleted Added
full compact
dtrace_isa.c (246275) dtrace_isa.c (248457)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 *
22 * Portions Copyright 2012,2013 Justin Hibbits <jhibbits@freebsd.org>
23 *
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 *
22 * Portions Copyright 2012,2013 Justin Hibbits <jhibbits@freebsd.org>
23 *
24 * $FreeBSD: head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c 246275 2013-02-03 00:19:34Z jhibbits $
24 * $FreeBSD: head/sys/cddl/dev/dtrace/powerpc/dtrace_isa.c 248457 2013-03-18 05:30:18Z jhibbits $
25 */
26/*
27 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30#include <sys/cdefs.h>
31
32#include <sys/param.h>

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

562 if (dtrace_copycheck((uintptr_t)uaddr, (uintptr_t)&ret, sizeof(ret))) {
563 if (copyin((const void *)uaddr, (void *)&ret, sizeof(ret))) {
564 DTRACE_CPUFLAG_SET(CPU_DTRACE_BADADDR);
565 cpu_core[curcpu].cpuc_dtrace_illval = (uintptr_t)uaddr;
566 }
567 }
568 return ret;
569}
25 */
26/*
27 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
28 * Use is subject to license terms.
29 */
30#include <sys/cdefs.h>
31
32#include <sys/param.h>

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

562 if (dtrace_copycheck((uintptr_t)uaddr, (uintptr_t)&ret, sizeof(ret))) {
563 if (copyin((const void *)uaddr, (void *)&ret, sizeof(ret))) {
564 DTRACE_CPUFLAG_SET(CPU_DTRACE_BADADDR);
565 cpu_core[curcpu].cpuc_dtrace_illval = (uintptr_t)uaddr;
566 }
567 }
568 return ret;
569}
570
571uintptr_t
572dtrace_fulword(void *uaddr)
573{
574 uintptr_t ret = 0;
575
576 if (dtrace_copycheck((uintptr_t)uaddr, (uintptr_t)&ret, sizeof(ret))) {
577 if (copyin((const void *)uaddr, (void *)&ret, sizeof(ret))) {
578 DTRACE_CPUFLAG_SET(CPU_DTRACE_BADADDR);
579 cpu_core[curcpu].cpuc_dtrace_illval = (uintptr_t)uaddr;
580 }
581 }
582 return ret;
583}