Skip to contentSkip to conversation

newbie question regarding alloc instruction

DISCUSSION Raj Patil 2 participants 2 messages Apr 12, 2004

lore
Share & tools
lore

Raj Patil

author
#0 lore raw

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

#1 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

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?

Quoted 5 lines

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.