예제 #1
0
static __inline u_long
ioapic_lock(struct ioapic_softc *sc)
{
	u_long flags;

	flags = read_psl();
	disable_intr();
	mtx_enter(&sc->sc_pic.pic_mutex);
	return flags;
}
예제 #2
0
파일: ioapic.c 프로젝트: SylvestreG/bitrig
static __inline u_long
ioapic_lock(struct ioapic_softc *sc)
{
	u_long flags;

	flags = read_psl();
	disable_intr();
#ifdef MULTIPROCESSOR
	mtx_enter(&sc->sc_pic.pic_mutex);
#endif
	return flags;
}