lkml.org 
[lkml]   [2002]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Intel P6 vs P7 system call performance
On Tue, 17 Dec 2002, Manfred Spraul wrote:

> >
> >
> > pushl %ebp
> > movl $0xfffff000, %ebp
> > call *%ebp
> > popl %ebp
> >
> >
>
> You could avoid clobbering a register with something like
>
> pushl $0xfffff000
> call *(%esp)
> addl %esp,4
>

This is a near 'call'.

pushl $0xfffff000
ret

This is a 'far' 'call' that I think you will need to reload the segment
back to user-mode segments on the return.

pushl $KERNEL_CS
pushl $0xfffff000
lret




Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.032 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site