Subject: Re: cpufunc.h
To: None <Richard.Earnshaw@buzzard.freeserve.co.uk>
From: John Fremlin <vii@users.sourceforge.net>
List: port-arm
Date: 05/29/2001 21:28:56
Richard Earnshaw <rearnsha@buzzard.freeserve.co.uk> writes:
> +/* set_stackptr without changing mode */
> +void
> +static __inline set_current_stackptr(u_int address)
> +{
> + __asm __volatile("mov r13, %0" : /* no outputs */
> + : "r" (address)
> + : "r13" );
> +}
> +
>
> It wouldn't surprise me if this seriously upsets the compiler. Even
> making this non-inline may not work.
Why do you say that. It did not complain when I compiled it iirc. Of
course if you do anything that touches the old stack after that you
are sunk, but that's your lookout fooling around with this stuff
anyway.
--
http://ape.n3.net