Is the stack layout for an arch standard?

Abhimanyu Saini as-lr at outlook.com
Sat Apr 9 07:18:08 EDT 2016


I was studying the dump_stack function in linux kernel (form arm) and I came across


struct stackframe {
        /*
         * FP member should hold R7 when CONFIG_THUMB2_KERNEL is enabled
         * and R11 otherwise.
         */
        unsigned long fp;
        unsigned long sp;
        unsigned long lr;
        unsigned long pc;
};


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?


-Abhimanyu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160409/730a6915/attachment.html 


More information about the Kernelnewbies mailing list