[U-Boot-Users] about ".set push"
Simon Kagstrom
simon.kagstrom at ericsson.com
Fri May 23 10:28:45 CEST 2008
On Fri, 23 May 2008 16:21:24 +0800 (CST)
wangjiankun820624 <wangjiankun820624 at 163.com> wrote:
> I don't know the function of the ".set push", and I don't know which type of the "push", symbol,dirctive or others?
From the as info pages ("info as"):
The directives `.set push' and `.set pop' may be used to save and
restore the current settings for all the options which are controlled
by `.set'. The `.set push' directive saves the current settings on a
stack. The `.set pop' directive pops the stack and restores the
settings.
I think what it means here is in the context of the assembly:
>
> " .set push \n"
> " .set mips64 \n"
> " .set noreorder \n"
> [...]
> " .set pop \n"
That regardless of if reordering was on or off where the inlined call
was made, it should be restored to it's old value by the ".set pop".
The same for the other directives.
// Simon
More information about the U-Boot
mailing list