summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/mpapic.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-06-22 16:04:22 +0000
committerpeter <peter@FreeBSD.org>1997-06-22 16:04:22 +0000
commit2dc5ff96e76a38f1a5ffd4c22e350c882f7592eb (patch)
tree281c7f0e4899a210947f7dfa14231536350272d2 /sys/i386/include/mpapic.h
parente0245a10b266a1abf80916d730d18966653de374 (diff)
downloadFreeBSD-src-2dc5ff96e76a38f1a5ffd4c22e350c882f7592eb.zip
FreeBSD-src-2dc5ff96e76a38f1a5ffd4c22e350c882f7592eb.tar.gz
Preliminary support for per-cpu data pages.
This eliminates a lot of #ifdef SMP type code. Things like _curproc reside in a data page that is unique on each cpu, eliminating the expensive macros like: #define curproc (SMPcurproc[cpunumber()]) There are some unresolved bootstrap and address space sharing issues at present, but Steve is waiting on this for other work. There is still some strictly temporary code present that isn't exactly pretty. This is part of a larger change that has run into some bumps, this part is standalone so it should be safe. The temporary code goes away when the full idle cpu support is finished. Reviewed by: fsmp, dyson
Diffstat (limited to 'sys/i386/include/mpapic.h')
-rw-r--r--sys/i386/include/mpapic.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/i386/include/mpapic.h b/sys/i386/include/mpapic.h
index c64ca3e..3ea2f6d 100644
--- a/sys/i386/include/mpapic.h
+++ b/sys/i386/include/mpapic.h
@@ -22,7 +22,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: mpapic.h,v 1.6 1997/05/29 05:57:43 fsmp Exp $
+ * $Id: mpapic.h,v 1.7 1997/05/31 03:29:06 fsmp Exp $
*/
#ifndef _MACHINE_MPAPIC_H_
@@ -87,11 +87,10 @@ enum busTypes {
* read 'reg' from 'apic'
*/
static __inline u_int32_t
-/** XXX APIC_STRUCT */
io_apic_read(int apic, int reg)
{
- ioapic[apic].ioregsel = reg;
- return ioapic[apic].iowin;
+ ioapic[apic]->ioregsel = reg;
+ return ioapic[apic]->iowin;
}
@@ -99,11 +98,10 @@ io_apic_read(int apic, int reg)
* write 'value' to 'reg' of 'apic'
*/
static __inline void
-/** XXX APIC_STRUCT */
io_apic_write(int apic, int reg, u_int32_t value)
{
- ioapic[apic].ioregsel = reg;
- ioapic[apic].iowin = value;
+ ioapic[apic]->ioregsel = reg;
+ ioapic[apic]->iowin = value;
}
@@ -113,7 +111,7 @@ io_apic_write(int apic, int reg, u_int32_t value)
static __inline void
apic_eoi(void)
{
- lapic__eoi = 0;
+ lapic.eoi = 0;
}
OpenPOWER on IntegriCloud