4 modified files
reactos/hal/halx86/include
diff -u -r1.1 -r1.2
--- apic.h 28 Nov 2004 01:30:02 -0000 1.1
+++ apic.h 25 Dec 2004 11:21:48 -0000 1.2
@@ -62,11 +62,11 @@
#define APIC_ICR0_DESTS (0x3 << 18) /* Destination Shorthand */
/* Delivery Modes */
-#define APIC_DM_FIXED (0x0 << 8)
-#define APIC_DM_LOWEST (0x1 << 8)
-#define APIC_DM_SMI (0x2 << 8)
-#define APIC_DM_REMRD (0x3 << 8)
-#define APIC_DM_NMI (0x4 << 8)
+#define APIC_DM_FIXED (0x0 << 8)
+#define APIC_DM_LOWEST (0x1 << 8)
+#define APIC_DM_SMI (0x2 << 8)
+#define APIC_DM_REMRD (0x3 << 8)
+#define APIC_DM_NMI (0x4 << 8)
#define APIC_DM_INIT (0x5 << 8)
#define APIC_DM_STARTUP (0x6 << 8)
#define APIC_DM_EXTINT (0x7 << 8)
@@ -174,7 +174,7 @@
/* Prototypes */
-volatile inline ULONG APICRead(ULONG Offset);
+inline ULONG APICRead(ULONG Offset);
inline VOID APICWrite(ULONG Offset, ULONG Value);
VOID APICSendIPI(ULONG Target, ULONG Mode);
reactos/hal/halx86/include
diff -u -r1.8 -r1.9
--- mps.h 28 Nov 2004 01:30:02 -0000 1.8
+++ mps.h 25 Dec 2004 11:21:48 -0000 1.9
@@ -280,7 +280,7 @@
/* Prototypes */
VOID HalpInitMPS(VOID);
-volatile ULONG IOAPICRead(ULONG Apic, ULONG Offset);
+ULONG IOAPICRead(ULONG Apic, ULONG Offset);
VOID IOAPICWrite(ULONG Apic, ULONG Offset, ULONG Value);
VOID IOAPICMaskIrq(ULONG Irq);
VOID IOAPICUnmaskIrq(ULONG Irq);
reactos/hal/halx86/mp
diff -u -r1.1 -r1.2
--- apic.c 3 Dec 2004 20:10:44 -0000 1.1
+++ apic.c 25 Dec 2004 11:21:48 -0000 1.2
@@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: apic.c,v 1.1 2004/12/03 20:10:44 gvg Exp $
+/* $Id: apic.c,v 1.2 2004/12/25 11:21:48 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -261,7 +261,7 @@
APICCalibrateTimer(BootCPU);
}
-volatile inline ULONG _APICRead(ULONG Offset)
+inline ULONG _APICRead(ULONG Offset)
{
PULONG p;
@@ -297,7 +297,7 @@
#if 0
-volatile inline ULONG APICRead(ULONG Offset)
+inline ULONG APICRead(ULONG Offset)
{
PULONG p;
@@ -305,7 +305,7 @@
return *p;
}
#else
-volatile inline ULONG APICRead(ULONG Offset)
+inline ULONG APICRead(ULONG Offset)
{
PULONG p;
ULONG CPU = (_APICRead(APIC_ID) & APIC_ID_MASK) >> 24;
reactos/hal/halx86/mp
diff -u -r1.1 -r1.2
--- processor_mp.c 3 Dec 2004 20:10:44 -0000 1.1
+++ processor_mp.c 25 Dec 2004 11:21:48 -0000 1.2
@@ -1,4 +1,4 @@
-/* $Id: processor_mp.c,v 1.1 2004/12/03 20:10:44 gvg Exp $
+/* $Id: processor_mp.c,v 1.2 2004/12/25 11:21:48 navaraf Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -126,7 +126,7 @@
/* Functions for handling I/O APICs */
-volatile ULONG IOAPICRead(ULONG Apic, ULONG Offset)
+ULONG IOAPICRead(ULONG Apic, ULONG Offset)
{
PULONG Base;
@@ -616,7 +616,7 @@
*/
memset(&entry,0,sizeof(entry));
- entry.delivery_mode = APIC_DM_LOWEST;
+ entry.delivery_mode = (APIC_DM_LOWEST >> 8);
entry.dest_mode = 1; /* logical delivery */
entry.mask = 1; /* disable IRQ */
#if 0
CVSspam 0.2.8