Skip to contentSkip to conversation

regarding exception frame

U-Boot-Users Dileep Kumar 1 participant 1 message Apr 8, 2008

lore
Share & tools
lore
#0 lore raw

Hi,
In the uboot1.1.6 code , there are some constants like STACK_FRAME_OVERHEAD and STACK_UNDERHEAD in
the file "\include\ppc_asm.tmpl " . Could you please tell me what are the use of those constants ?

Here is one statement in the macro CRITICAL_EXCEPTION_PROLOG in the file "ppc_asm.tmpl"

subi r21,r1,INT_FRAME_SIZE+STACK_UNDERHEAD; /* alloc exc. frame */\

what is the need of STACK_UNDERHEAD here ?

In the macro STD_EXCEPTION there is a statement in the same file
addi r3,r1,STACK_FRAME_OVERHEAD

What is the need of STACK_FRAME_OVERHEAD here ?

Please clarify my doubts ....

Thanks
Dileep Kumar