lkml.org 
[lkml]   [1998]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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 13:41    [W:0.064 / U:1.776 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site