Author: janderwald
Date: Fri Feb 2 11:41:30 2007
New Revision: 25683
URL:
http://svn.reactos.org/svn/reactos?rev=25683&view=rev
Log:
- Fix warning(s)
- Void functions dont return values
- Include intrin.h for _enable / _disable intrinsics
Modified:
trunk/reactos/hal/halx86/generic/halinit.c
trunk/reactos/hal/halx86/generic/misc.c
trunk/reactos/hal/halx86/include/hal.h
Modified: trunk/reactos/hal/halx86/generic/halinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/halinit…
==============================================================================
--- trunk/reactos/hal/halx86/generic/halinit.c (original)
+++ trunk/reactos/hal/halx86/generic/halinit.c Fri Feb 2 11:41:30 2007
@@ -123,7 +123,7 @@
((PKIPCR)KeGetPcr())->IDT[0x30].ExtendedOffset =
(USHORT)(((ULONG_PTR)HalpClockInterrupt >> 16) & 0xFFFF);
((PKIPCR)KeGetPcr())->IDT[0x30].Offset =
- (ULONG_PTR)HalpClockInterrupt;
+ (USHORT)((ULONG_PTR)HalpClockInterrupt);
HalEnableSystemInterrupt(0x30, CLOCK2_LEVEL, Latched);
/* Initialize DMA. NT does this in Phase 0 */
Modified: trunk/reactos/hal/halx86/generic/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/misc.c?…
==============================================================================
--- trunk/reactos/hal/halx86/generic/misc.c (original)
+++ trunk/reactos/hal/halx86/generic/misc.c Fri Feb 2 11:41:30 2007
@@ -40,7 +40,7 @@
IN ULONG NumberPages)
{
/* Use kernel memory manager I/O map facilities */
- return MmUnmapIoSpace(VirtualAddress, NumberPages << PAGE_SHIFT);
+ MmUnmapIoSpace(VirtualAddress, NumberPages << PAGE_SHIFT);
}
/* FUNCTIONS *****************************************************************/
Modified: trunk/reactos/hal/halx86/include/hal.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/include/hal.h?r…
==============================================================================
--- trunk/reactos/hal/halx86/include/hal.h (original)
+++ trunk/reactos/hal/halx86/include/hal.h Fri Feb 2 11:41:30 2007
@@ -28,6 +28,7 @@
#include <arc/arc.h>
#include <iotypes.h>
#include <kefuncs.h>
+#include <intrin.h>
#include <halfuncs.h>
#include <iofuncs.h>
#include <ldrtypes.h>