mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-01-01 06:23:37 +01:00
13c3390b22
... instead of vhex-generic, where it doesn't really belong because Vhex might run on other architectures.
23 lines
490 B
C
23 lines
490 B
C
#ifndef __BITS_SETJMP_H__
|
|
# define __BITS_SETJMP_H__
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
/*
|
|
** Custom(?) jmp_buf struct
|
|
** The SR register is saved first because the long jump can be involved with
|
|
** different register bank. So to avoid this, it's simpler to restore the saved
|
|
** SR first (see <src/setjmp/target/sh-generic/longjmp.S>)
|
|
*/
|
|
struct __jmp_buf
|
|
{
|
|
uint32_t sr;
|
|
uint32_t reg[8];
|
|
uint32_t gbr;
|
|
uint32_t macl;
|
|
uint32_t mach;
|
|
uint32_t pr;
|
|
};
|
|
|
|
#endif /*__BITS_SETJMP_H__*/
|