> 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
>
I hate answering my own stuff......... This gets back and modifies
no registers.
Actually I should be:
pushl $next_address # Where to go when the call returns
pushl $0xfffff000 # Put this on the stack
ret # 'Return' to it (jump)
next_address: # Were we end up after
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/