Is the stack layout for an arch standard?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux