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/
This archive was generated by hypermail 2b29 : Mon Dec 23 2002 - 22:00:17 EST