lkml.org 
[lkml]   [1998]   [Mar]   [13]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateFri, 13 Mar 1998 18:33:55 +0100 (CET)
FromMOLNAR Ingo <>
Subject[patch] x86, small syscall entry speedup, 2.1.90
this patch speeds up syscall entry and page faults by 1 cycle on a pentium
;) It's tested.

-- mingo

--- linux/arch/i386/kernel/entry.S.orig	Thu Mar 19 06:39:59 1998
+++ linux/arch/i386/kernel/entry.S	Thu Mar 19 06:40:35 1998
@@ -91,8 +91,8 @@
 	pushl %ecx; \
 	pushl %ebx; \
 	movl $(__KERNEL_DS),%edx; \
-	mov %dx,%ds; \
-	mov %dx,%es;
+	movb %dx,%ds; \
+	movb %dx,%es;
 
 #define RESTORE_ALL \
 	popl %ebx; \
@@ -250,8 +250,8 @@
 	pushl %eax			# push the error code
 	pushl %edx
 	movl $(__KERNEL_DS),%edx
-	mov %dx,%ds
-	mov %dx,%es
+	movb %dx,%ds
+	movb %dx,%es
 	GET_CURRENT(%ebx)
 	call *%ecx
 	addl $8,%esp

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 12:41    [from the cache]
©2003-2008