apicreg.h (72358) | apicreg.h (73011) |
---|---|
1/* 2 * Copyright (c) 1996, by Peter Wemm and Steve Passe 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/* 2 * Copyright (c) 1996, by Peter Wemm and Steve Passe 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/sys/i386/include/apicreg.h 72358 2001-02-11 10:44:09Z markm $ | 25 * $FreeBSD: head/sys/i386/include/apicreg.h 73011 2001-02-25 06:29:04Z jake $ |
26 */ 27 28#ifndef _MACHINE_APIC_H_ 29#define _MACHINE_APIC_H_ 30 31/* 32 * Local && I/O APIC definitions. 33 */ --- 431 unchanged lines hidden (view full) --- 465 466#ifdef LOCORE 467 468#ifdef SMP 469 470/* 471 * Protects the IO APIC and apic_imen as a critical region. 472 */ | 26 */ 27 28#ifndef _MACHINE_APIC_H_ 29#define _MACHINE_APIC_H_ 30 31/* 32 * Local && I/O APIC definitions. 33 */ --- 431 unchanged lines hidden (view full) --- 465 466#ifdef LOCORE 467 468#ifdef SMP 469 470/* 471 * Protects the IO APIC and apic_imen as a critical region. 472 */ |
473#define IMASK_LOCK MTX_LOCK_SPIN(_imen_mtx, 0) 474#define IMASK_UNLOCK MTX_UNLOCK_SPIN(_imen_mtx) | 473#define IMASK_LOCK MTX_LOCK_SPIN(imen_mtx, 0) 474#define IMASK_UNLOCK MTX_UNLOCK_SPIN(imen_mtx) |
475 476#else /* SMP */ 477 478#define IMASK_LOCK /* NOP */ 479#define IMASK_UNLOCK /* NOP */ 480 481#endif /* SMP */ 482 483#else /* LOCORE */ 484 485/* global data in mp_machdep.c */ 486extern struct mtx imen_mtx; 487 488#endif /* LOCORE */ 489 490#endif /* _MACHINE_APIC_H_ */ | 475 476#else /* SMP */ 477 478#define IMASK_LOCK /* NOP */ 479#define IMASK_UNLOCK /* NOP */ 480 481#endif /* SMP */ 482 483#else /* LOCORE */ 484 485/* global data in mp_machdep.c */ 486extern struct mtx imen_mtx; 487 488#endif /* LOCORE */ 489 490#endif /* _MACHINE_APIC_H_ */ |