Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2004 02:30:37 GMT
From:      Scott Long <scottl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 59365 for review
Message-ID:  <200408110230.i7B2UbZf047249@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=59365

Change 59365 by scottl@scottl-wv1u on 2004/08/11 02:30:23

	Add stub msi_init() hook

Affected files ...

.. //depot/projects/newint/sys/i386/i386/local_apic.c#3 edit
.. //depot/projects/newint/sys/i386/i386/msi.c#2 edit
.. //depot/projects/newint/sys/i386/include/msi.h#1 add

Differences ...

==== //depot/projects/newint/sys/i386/i386/local_apic.c#3 (text+ko) ====

@@ -606,6 +606,9 @@
 	/* Last, setup the cpu topology now that we have probed CPUs */
 	mp_topology();
 #endif
+
+	/* Initialize the MSI subsystem */
+	msi_init();
 }
 SYSINIT(apic_init, SI_SUB_CPU, SI_ORDER_FIRST, apic_init, NULL)
 

==== //depot/projects/newint/sys/i386/i386/msi.c#2 (text+ko) ====

@@ -160,3 +160,13 @@
 {
 	return (0);
 }
+
+void msi_init(void)
+{
+
+	if ((cpu_id & 0xf00) != 0xf00)
+		return;
+
+	if (bootverbose || 1)
+		printf("Initializing MSI\n");
+}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408110230.i7B2UbZf047249>