- Reorganize HAL exports and export KeTRyToAcquireQueuedSpinlock and KeTryToAcquireQueuedSpinLockRaisetoSynch.

- Add stub for HalSetTimeIncrement.
- Cleanup CMOS-related routines (Get/Set environment value and get/set RTC). Fixup some prototypes as well. Inline HalpReadCmos/HalpWriteCmos instead of having a separate function.
- Fixup wrong protypes for various Queued Spinlock functions.
- Use __rdtsc intrinsic instead of Ke386RdTsc.
- Other MSVC compilation fixes.

svn path=/trunk/; revision=24770
This commit is contained in:
Alex Ionescu
2006-11-16 17:30:52 +00:00
parent 4a33b4c040
commit 596c3bee62
11 changed files with 369 additions and 406 deletions
+13 -11
View File
@@ -162,15 +162,6 @@ HalEndSystemInterrupt(
ULONG Vector
);
NTHALAPI
BOOLEAN
NTAPI
HalGetEnvironmentVariable(
PCH Variable,
USHORT Length,
PCH Buffer
);
NTHALAPI
VOID
NTAPI
@@ -202,14 +193,25 @@ HalHandleNMI(
//
// Environment Functions
//
#ifdef _ARC_
NTHALAPI
BOOLEAN
ARC_STATUS
NTAPI
HalSetEnvironmentVariable(
IN PCH Name,
IN PCH Value
);
NTHALAPI
ARC_STATUS
NTAPI
HalGetEnvironmentVariable(
IN PCH Variable,
IN USHORT Length,
OUT PCH Buffer
);
#endif
//
// Time Functions
//
@@ -221,7 +223,7 @@ HalQueryRealTimeClock(
);
NTHALAPI
VOID
BOOLEAN
NTAPI
HalSetRealTimeClock(
IN PTIME_FIELDS RtcTime