* newbie question regarding alloc instruction
@ 2004-04-12 20:03 Raj Patil
2004-04-12 22:59 ` Chen, Kenneth W
0 siblings, 1 reply; 2+ messages in thread
From: Raj Patil @ 2004-04-12 20:03 UTC (permalink / raw)
To: linux-ia64
Hello,
I have a basic question about alloc instruction. I apologise if it is too
basic. BUt,
I could not find the info in the docs I looked at...
Are there any restrictions in using alloc instruction more than once in a
function?
(I see that some of the kernel functions do use more than once)
If not, do I need to worry about setting/unsetting the CFM etc or will it be
taken care by setting/resetting ar.pfs in the block. (According to one of
the
manuals CFM can not bet set manually.)
Thanks for any pointers/info.
Regards,
Raj
_________________________________________________________________
Check out MSN PC Safety & Security to help ensure your PC is protected and
safe. http://specials.msn.com/msn/security.asp
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: newbie question regarding alloc instruction
2004-04-12 20:03 newbie question regarding alloc instruction Raj Patil
@ 2004-04-12 22:59 ` Chen, Kenneth W
0 siblings, 0 replies; 2+ messages in thread
From: Chen, Kenneth W @ 2004-04-12 22:59 UTC (permalink / raw)
To: linux-ia64
>>>> Raj Patil wrote on Monday, April 12, 2004 1:03 PM
>
> I have a basic question about alloc instruction. I apologise if it is too
> basic. BUt, I could not find the info in the docs I looked at...
Did you look at ia64 software developer's manual, volume 3, section 2.2?
> Are there any restrictions in using alloc instruction more than once in a
> function? (I see that some of the kernel functions do use more than once)
> If not, do I need to worry about setting/unsetting the CFM etc or will it
> be taken care by setting/resetting ar.pfs in the block. (According to one
> of the manuals CFM can not bet set manually.)
There is no restriction on how many time alloc can be called, br.ret restores
cfm from ar.pfs. So make sure the original pfs value is in ar.pfs register
when br.ret executes.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-04-12 22:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-12 20:03 newbie question regarding alloc instruction Raj Patil
2004-04-12 22:59 ` Chen, Kenneth W
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox