aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sutcliffe <ir0nh34d@users.sourceforge.net>2008-08-30 02:16:11 +0000
committerChris Sutcliffe <ir0nh34d@users.sourceforge.net>2008-08-30 02:16:11 +0000
commit782ac76f36edf0ce907c62fb7e8e183c3d246335 (patch)
tree94957e53aa3b42da4d0917b03feeeb08d6c2fdbb
parentb6ab3057f6b68c72eddf26282fae8db7cbffe51e (diff)
downloadnewlib-782ac76f36edf0ce907c62fb7e8e183c3d246335.zip
newlib-782ac76f36edf0ce907c62fb7e8e183c3d246335.tar.gz
newlib-782ac76f36edf0ce907c62fb7e8e183c3d246335.tar.bz2
2008-08-29 Andy Grover <andy.grover@oracle.com>
* include/ddk/winddk.h (KeFlushQueuedDpcs, KeMemoryBarrier): Define. (KeGetCurrentProcessorNumber): Fix incorrect member reference. (InterlockedIncrement, InterlockedDecrement): fix warning. * lib/ddk/ntoskrnl.def (KeFlushQueuedDpcs, KeMemoryBarrier): Export. (KeNumberProcessors): Export.
-rw-r--r--winsup/w32api/ChangeLog8
-rw-r--r--winsup/w32api/include/ddk/winddk.h13
-rw-r--r--winsup/w32api/lib/ddk/ntoskrnl.def3
3 files changed, 20 insertions, 4 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 22636a9..d53a24d 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,11 @@
+2008-08-29 Andy Grover <andy.grover@oracle.com>
+
+ * include/ddk/winddk.h (KeFlushQueuedDpcs, KeMemoryBarrier): Define.
+ (KeGetCurrentProcessorNumber): Fix incorrect member reference.
+ (InterlockedIncrement, InterlockedDecrement): fix warning.
+ * lib/ddk/ntoskrnl.def (KeFlushQueuedDpcs, KeMemoryBarrier): Export.
+ (KeNumberProcessors): Export.
+
2008-08-22 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/shlwapi.h (ASSOCF_INIT_NOREMAPCLSID, ASSOCF_INIT_BYEXENAME,
diff --git a/winsup/w32api/include/ddk/winddk.h b/winsup/w32api/include/ddk/winddk.h
index 6f151f2..9c9a078 100644
--- a/winsup/w32api/include/ddk/winddk.h
+++ b/winsup/w32api/include/ddk/winddk.h
@@ -3828,7 +3828,7 @@ KeGetCurrentIrql(
* VOID)
*/
#define KeGetCurrentProcessorNumber() \
- ((ULONG)KeGetCurrentKPCR()->ProcessorNumber)
+ ((ULONG)KeGetCurrentKPCR()->Number)
#if __USE_NTOSKRNL__
@@ -3842,13 +3842,13 @@ NTOSAPI
LONG
DDKFASTAPI
InterlockedIncrement(
- /*IN*/ PLONG VOLATILE Addend);
+ /*IN*/ LONG VOLATILE *Addend);
NTOSAPI
LONG
DDKFASTAPI
InterlockedDecrement(
- /*IN*/ PLONG VOLATILE Addend);
+ /*IN*/ LONG VOLATILE *Addend);
NTOSAPI
LONG
@@ -7350,6 +7350,11 @@ KeEnterCriticalRegion(
#define KeFlushIoBuffers(_Mdl, _ReadOperation, _DmaOperation)
NTOSAPI
+VOID
+DDKAPI
+KeFlushQueuedDpcs(VOID);
+
+NTOSAPI
PRKTHREAD
DDKAPI
KeGetCurrentThread(
@@ -7449,6 +7454,8 @@ DDKAPI
KeLeaveCriticalRegion(
VOID);
+#define KeMemoryBarrier() asm("mfence;")
+
NTOSAPI
NTSTATUS
DDKAPI
diff --git a/winsup/w32api/lib/ddk/ntoskrnl.def b/winsup/w32api/lib/ddk/ntoskrnl.def
index 33ba2dc..9ba90b0 100644
--- a/winsup/w32api/lib/ddk/ntoskrnl.def
+++ b/winsup/w32api/lib/ddk/ntoskrnl.def
@@ -506,6 +506,7 @@ KeEnterCriticalRegion@0
;KeFindConfigurationEntry
;KeFindConfigurationNextEntry
;KeFlushEntireTb
+KeFlushQueuedDpcs@0
KeGetCurrentThread@0
KeGetPreviousMode@0
KeGetRecommendedSharedDataAlignment@0
@@ -542,7 +543,7 @@ KeInsertQueueDpc@12
;KeIsExecutingDpc
KeLeaveCriticalRegion@0
;KeLoaderBlock DATA
-;KeNumberProcessors DATA
+KeNumberProcessors DATA
;KeProfileInterrupt
;KeProfileInterruptWithSource
KePulseEvent@12