"Ying Chu" <[EMAIL PROTECTED]> writes:
> A simple code running on PIII 800,kernel 2.6.20 with SEP enabled
> causes a segmentation fault.
SYSENTER has a hardcoded return address, that is why you cannot be used
anywhere but in the vsyscall trampoline. In addition it doesn't work
on x86-64 for 32
A simple code running on PIII 800,kernel 2.6.20 with SEP enabled
causes a segmentation fault.
The slice is as following.
#include
#include
int main()
{
unsigned long ret=0;
__asm__ __volatile__ ("movl %1,%%eax\n\tpushl %%ecx\n\t"
"pushl %%edx\n\tpush %%ebp\n\t"
"movl %%esp,%%eb
2 matches
Mail list logo