From 340ac0278b3eb568396163a28b1d18c64171fa40 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Mon, 5 Nov 2007 20:02:58 +0000 Subject: [PATCH] Ntoskrnl: - Plugged in batching. - Thanks to Thomas for helping me again! 8^) svn path=/trunk/; revision=30196 --- reactos/ntoskrnl/ke/i386/trap.s | 3 +-- reactos/ntoskrnl/ke/i386/usercall.c | 8 +++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/reactos/ntoskrnl/ke/i386/trap.s b/reactos/ntoskrnl/ke/i386/trap.s index f1d1d20fc3c..a70075bdc2a 100644 --- a/reactos/ntoskrnl/ke/i386/trap.s +++ b/reactos/ntoskrnl/ke/i386/trap.s @@ -192,8 +192,7 @@ ReadBatch: /* Flush it */ push edx push eax -// <-- Remove these once it is working! -// call [_KeGdiFlushUserBatch] + call [_KeGdiFlushUserBatch] pop eax pop edx diff --git a/reactos/ntoskrnl/ke/i386/usercall.c b/reactos/ntoskrnl/ke/i386/usercall.c index 9d384c5715b..71221e49447 100644 --- a/reactos/ntoskrnl/ke/i386/usercall.c +++ b/reactos/ntoskrnl/ke/i386/usercall.c @@ -12,7 +12,7 @@ #define NDEBUG #include -extern PGDI_BATCHFLUSH_ROUTINE KeGdiFlushUserBatch(); +extern PGDI_BATCHFLUSH_ROUTINE KeGdiFlushUserBatch; /* PRIVATE FUNCTIONS *********************************************************/ @@ -217,10 +217,8 @@ KeUserModeCallback(IN ULONG RoutineIndex, /* Check if we have GDI Batch operations */ if (GdiBatchCount) { - /* Shouldn't happen in ROS yet */ - ASSERT(FALSE); -// *UserEsp -= 256; -// KeGdiFlushUserBatch(); + *UserEsp -= 256; + KeGdiFlushUserBatch(); } /* Restore stack and return */