#ifndef __COREDUMP_H__
#define __COREDUMP_H__

#include <stdint.h>

#ifdef __cplusplus
 extern "C" {
#endif

struct coredump_regs_s {
    /* register saved by software */
    uint32_t exc_return;
    uint32_t r4;
    uint32_t r5;
    uint32_t r6;
    uint32_t r7;
    uint32_t r8;
    uint32_t r9;
    uint32_t r10;
    uint32_t r11;

    /* saved in sp */
    uint32_t r0;
    uint32_t r1;
    uint32_t r2;
    uint32_t r3;
    uint32_t r12;
    uint32_t lr;
    uint32_t pc;
    uint32_t xpsr;
} coredump_regs;
  
#ifdef __cplusplus
}
#endif

#endif /* __COREDUMP_H__ */
