/* $OpenBSD: cpu.h,v 1.10 2018/03/24 04:19:43 visa Exp $ */ /* public domain */ #ifndef _MACHINE_CPU_H_ #define _MACHINE_CPU_H_ #include #include #ifdef _KERNEL /* * 88110 systems only have cpudep6..7 available so far. * By the time Luna2001/2010 are supported, we can grow ci_cpudep to a * couple more fields to unbreak this. */ #ifndef M88110 #define ci_curspl ci_cpudep4 #define ci_swireg ci_cpudep5 #endif #define ci_intr_mask ci_cpudep6 #define ci_clock_ack ci_cpudep7 void luna88k_ext_int(struct trapframe *eframe); #define md_interrupt_func luna88k_ext_int static inline u_long intr_disable(void) { u_long psr; psr = get_psr(); set_psr(psr | PSR_IND); return psr; } static inline void intr_restore(u_long psr) { set_psr(psr); } #endif /* _KERNEL */ #endif /* _MACHINE_CPU_H_ */