diff options
author | Jake Burkholder <jake@FreeBSD.org> | 2001-09-03 22:27:23 +0000 |
---|---|---|
committer | Jake Burkholder <jake@FreeBSD.org> | 2001-09-03 22:27:23 +0000 |
commit | 3d450a75c1f0ab1b8a8830f526843369c3abd2ce (patch) | |
tree | b4314fda558a1d1c410b90150c7843015ce5ebcc /sys/sparc64/include/cpu.h | |
parent | e586bed159a1a92b6dee47426a8bb714dd23532e (diff) | |
download | src-3d450a75c1f0ab1b8a8830f526843369c3abd2ce.tar.gz src-3d450a75c1f0ab1b8a8830f526843369c3abd2ce.zip |
Use the correct copyrights. Note where most of this came from.
Requested by: obrien
Notes
Notes:
svn path=/head/; revision=82899
Diffstat (limited to 'sys/sparc64/include/cpu.h')
-rw-r--r-- | sys/sparc64/include/cpu.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/sys/sparc64/include/cpu.h b/sys/sparc64/include/cpu.h index 966ad3f34a35..3a84287ef945 100644 --- a/sys/sparc64/include/cpu.h +++ b/sys/sparc64/include/cpu.h @@ -1,7 +1,10 @@ /*- - * Copyright (c) 2001 Jake Burkholder. + * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * + * This code is derived from software contributed to Berkeley by + * William Jolitz. + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -10,11 +13,18 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) @@ -23,6 +33,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * + * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91 + * from: FreeBSD: src/sys/i386/include/cpu.h,v 1.62 2001/06/29 * $FreeBSD$ */ @@ -30,12 +42,13 @@ #define _MACHINE_CPU_H_ #include <machine/frame.h> +#include <machine/tstate.h> #define CLKF_USERMODE(cfp) (0) #define CLKF_PC(cfp) ((cfp)->cf_tf.tf_tpc) #define TRAPF_PC(tfp) ((tfp)->tf_tpc) -#define TRAPF_USERMODE(tfp) (0) +#define TRAPF_USERMODE(tfp) (((tfp)->tf_tstate & TSTATE_PRIV) == 0) #define cpu_getstack(p) ((p)->p_frame->tf_sp) #define cpu_setstack(p, sp) ((p)->p_frame->tf_sp = (sp)) |