<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I was studying the dump_stack function in linux kernel (form arm) and I came across </p>
<p><br>
</p>
<p></p>
<div>struct stackframe {</div>
<div> /*</div>
<div> * FP member should hold R7 when CONFIG_THUMB2_KERNEL is enabled</div>
<div> * and R11 otherwise.</div>
<div> */</div>
<div> unsigned long fp;</div>
<div> unsigned long sp;</div>
<div> unsigned long lr;</div>
<div> unsigned long pc;</div>
<div>};</div>
<br>
<p></p>
<p>If this is the complete stack frame, then where are the local variables stored? Is this format generic, for example will U-Boot compiled for the same arch use this exact format for maintaining stack?</p>
<p><br>
</p>
<p>-Abhimanyu</p>
<p></p>
</div>
</body>
</html>