#include <ddk/status.h>
#include <internal/i386/segment.h>
#include <internal/ps.h>
-#include <ddk/defines.h>
+
+#define KernelMode (0)
+#define UserMode (1)
/*
*
/* Copy the arguments from the user stack to the kernel stack */
movl %esp,%edi
+ cld
rep movsb
/* DS is now also kernel segment */
/* 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 */
+// pushl %eax
+// call _KiSystemCallHook
+// popl %eax
+
+ /* Call service check routine */
pushl %eax
- call _KiSystemCallHook
- popl %eax
+ call _KiServiceCheck
+ popl %eax
/* Make the system service call */
movl %es:_KeServiceDescriptorTableShadow + 16, %ecx