cpu.h (a2a1c95c104364ae0224b66a5180a3fafe6d98d2) | cpu.h (48a09cf2760da35e089ae3e2d56578b730fc7047) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91 | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)cpu.h 5.4 (Berkeley) 5/9/91 |
37 * $Id: cpu.h,v 1.28 1997/02/22 09:34:04 peter Exp $ | 37 * $Id: cpu.h,v 1.29 1997/04/07 07:15:58 peter Exp $ |
38 */ 39 40#ifndef _MACHINE_CPU_H_ 41#define _MACHINE_CPU_H_ 42 43/* 44 * Definitions unique to i386 cpu support. 45 */ | 38 */ 39 40#ifndef _MACHINE_CPU_H_ 41#define _MACHINE_CPU_H_ 42 43/* 44 * Definitions unique to i386 cpu support. 45 */ |
46#include <machine/psl.h> |
|
46#include <machine/frame.h> 47#include <machine/segments.h> 48 49/* 50 * definitions of cpu-dependent requirements 51 * referenced in generic code 52 */ 53#undef COPY_SIGCODE /* don't copy sigcode above user stack in exec */ 54 55#define cpu_exec(p) /* nothing */ 56#define cpu_swapin(p) /* nothing */ 57#define cpu_setstack(p, ap) ((p)->p_md.md_regs[SP] = (ap)) 58#define cpu_set_init_frame(p, fp) ((p)->p_md.md_regs = (fp)) 59 | 47#include <machine/frame.h> 48#include <machine/segments.h> 49 50/* 51 * definitions of cpu-dependent requirements 52 * referenced in generic code 53 */ 54#undef COPY_SIGCODE /* don't copy sigcode above user stack in exec */ 55 56#define cpu_exec(p) /* nothing */ 57#define cpu_swapin(p) /* nothing */ 58#define cpu_setstack(p, ap) ((p)->p_md.md_regs[SP] = (ap)) 59#define cpu_set_init_frame(p, fp) ((p)->p_md.md_regs = (fp)) 60 |
60#define CLKF_USERMODE(framep) (ISPL((framep)->cf_cs) == SEL_UPL) | 61#define CLKF_USERMODE(framep) \ 62 ((ISPL((framep)->cf_cs) == SEL_UPL) || (framep->cf_eflags & PSL_VM)) 63 |
61#define CLKF_INTR(framep) (intr_nesting_level >= 2) 62#if 0 63/* 64 * XXX splsoftclock() is very broken and barely worth fixing. It doesn't 65 * turn off the clock bit in imen or in the icu. (This is not a serious 66 * problem at 100 Hz but it is serious at 16000 Hz for pcaudio. softclock() 67 * can take more than 62.5 usec so clock interrupts are lost.) It doesn't 68 * check for pending interrupts being unmasked. clkintr() and Xintr0() --- 75 unchanged lines hidden --- | 64#define CLKF_INTR(framep) (intr_nesting_level >= 2) 65#if 0 66/* 67 * XXX splsoftclock() is very broken and barely worth fixing. It doesn't 68 * turn off the clock bit in imen or in the icu. (This is not a serious 69 * problem at 100 Hz but it is serious at 16000 Hz for pcaudio. softclock() 70 * can take more than 62.5 usec so clock interrupts are lost.) It doesn't 71 * check for pending interrupts being unmasked. clkintr() and Xintr0() --- 75 unchanged lines hidden --- |