• Gcc naked attribute leaves some trailing function prologue asm instructions
    I've the following implementation for a svc exception handler on a cortex-m0: int __attribute__((naked)) sv_call_handler(uint32_t n, uint32_t arg1, uint32_t arg2, uint32_t arg3, uint32_t arg4, uint32_t...
  • Gcc naked attribute leaves some trailing function prologue asm instructions
    I've the following implementation for a svc exception handler on a cortex-m0: int __attribute__((naked)) sv_call_handler(uint32_t n, uint32_t arg1, uint32_t arg2, uint32_t arg3, uint32_t arg4, uint32_t...
  • frame pointer in arm32/armv7a
    Hi all, I am trying to print address of frame pointers of stack frames in arm32 arch and armv7. To find previous stack frame address I am doing (frame - 12) in arch_prev_frame() and (frame - 4 ...
  • Frame pointers on armv8-m
    Using gcc eabi 8.2.1 for armv8-m (Cortex M33). Compiling with -fno-omit-frame-pointer does not seem to store the frame pointer in any register. Is this not supported for the armv8-m architecture? I don...
  • frame pointer in arm32/armv7a
    Hi all, I am trying to print address of frame pointers of stack frames in arm32 arch and armv7. To find previous stack frame address I am doing (frame - 12) in arch_prev_frame() and (frame - 4 ...