Author: sginsberg
Date: Sat Jul 25 13:44:27 2009
New Revision: 42205
URL:
http://svn.reactos.org/svn/reactos?rev=42205&view=rev
Log:
- Make mp HAL MSC compatible
Modified:
trunk/reactos/hal/halx86/mp/apic.c
trunk/reactos/hal/halx86/mp/mpsirql.c
Modified: trunk/reactos/hal/halx86/mp/apic.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/mp/apic.c?rev=4…
==============================================================================
--- trunk/reactos/hal/halx86/mp/apic.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/mp/apic.c [iso-8859-1] Sat Jul 25 13:44:27 2009
@@ -351,7 +351,7 @@
BOOLEAN VerifyLocalAPIC(VOID)
{
SIZE_T reg0, reg1;
- ULONG l, h;
+ ULONG l = 0, h = 0;
/* The version register is read-only in a real APIC */
reg0 = APICRead(APIC_VER);
DPRINT1("Getting VERSION: %x\n", reg0);
@@ -416,7 +416,7 @@
#ifdef CONFIG_SMP
VOID APICSendIPI(ULONG Target, ULONG Mode)
{
- ULONG tmp, i, flags;
+ ULONG tmp, i, flags = 0;
/* save flags and disable interrupts */
Ke386SaveFlags(flags);
Modified: trunk/reactos/hal/halx86/mp/mpsirql.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/mp/mpsirql.c?re…
==============================================================================
--- trunk/reactos/hal/halx86/mp/mpsirql.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/mp/mpsirql.c [iso-8859-1] Sat Jul 25 13:44:27 2009
@@ -28,7 +28,7 @@
*/
{
KIRQL irql;
- ULONG Flags;
+ ULONG Flags = 0;
Ke386SaveFlags(Flags);
_disable();
@@ -53,7 +53,7 @@
* PURPOSE: Sets the current irq level without taking any action
*/
{
- ULONG Flags;
+ ULONG Flags = 0;
if (NewIrql > HIGH_LEVEL)
{
DPRINT1 ("NewIrql %x\n", NewIrql);
@@ -71,7 +71,7 @@
VOID
HalpLowerIrql(KIRQL NewIrql, BOOLEAN FromHalEndSystemInterrupt)
{
- ULONG Flags;
+ ULONG Flags = 0;
UCHAR DpcRequested;
if (NewIrql >= DISPATCH_LEVEL)
{
@@ -188,7 +188,7 @@
KfRaiseIrql (KIRQL NewIrql)
{
KIRQL OldIrql;
- ULONG Flags;
+ ULONG Flags = 0;
Ke386SaveFlags(Flags);
_disable();
@@ -295,7 +295,7 @@
ULONG Vector,
PKIRQL OldIrql)
{
- ULONG Flags;
+ ULONG Flags = 0;
DPRINT("Vector (0x%X) Irql (0x%X)\n", Vector, Irql);
if (KeGetCurrentIrql () >= Irql)
@@ -324,7 +324,7 @@
* FUNCTION: Finish a system interrupt and restore the specified irq level.
*/
{
- ULONG Flags;
+ ULONG Flags = 0;
Ke386SaveFlags(Flags);
if (Flags & EFLAGS_INTERRUPT_MASK)