git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for HEAD-2003091401
[reactos.git]
/
ntoskrnl
/
ke
/
i386
/
syscall.S
diff --git
a/ntoskrnl/ke/i386/syscall.S
b/ntoskrnl/ke/i386/syscall.S
index
eb4f068
..
a5d32a1
100644
(file)
--- a/
ntoskrnl/ke/i386/syscall.S
+++ b/
ntoskrnl/ke/i386/syscall.S
@@
-28,7
+28,9
@@
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/ps.h>
#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/ps.h>
-#include <ddk/defines.h>
+
+#define KernelMode (0)
+#define UserMode (1)
/*
*
/*
*
@@
-139,6
+141,7
@@
new_serviceInRange:
/* Copy the arguments from the user stack to the kernel stack */
movl %esp,%edi
/* Copy the arguments from the user stack to the kernel stack */
movl %esp,%edi
+ cld
rep movsb
/* DS is now also kernel segment */
rep movsb
/* DS is now also kernel segment */
@@
-188,15
+191,21
@@
new_shadowServiceInRange:
/* Copy the arguments from the user stack to the kernel stack */
movl %esp,%edi
/* Copy the arguments from the user stack to the kernel stack */
movl %esp,%edi
+ cld
rep movsb
/* DS is now also kernel segment */
movw %bx,%ds
/* Call system call hook */
rep movsb
/* DS is now also kernel segment */
movw %bx,%ds
/* Call system call hook */
+// pushl %eax
+// call _KiSystemCallHook
+// popl %eax
+
+ /* Call service check routine */
pushl %eax
pushl %eax
- call _KiS
ystemCallHoo
k
-
popl %eax
+ call _KiS
erviceChec
k
+ popl %eax
/* Make the system service call */
movl %es:_KeServiceDescriptorTableShadow + 16, %ecx
/* Make the system service call */
movl %es:_KeServiceDescriptorTableShadow + 16, %ecx