libucontext/arch/sh/defs.h

21 lines
361 B
C
Raw Normal View History

2020-12-11 21:13:20 +00:00
#ifndef __ARCH_SH4_DEFS_H
#define __ARCH_SH4_DEFS_H
#define REG_SZ (4)
#define MCONTEXT_GREGS (24)
#define REG_SP (15)
2020-12-11 21:13:20 +00:00
#define REG_PC (16)
#define REG_PR (17)
#define REG_SR (18)
#define REG_GBR (19)
#define REG_MACH (20)
#define REG_MACL (21)
2020-12-11 21:13:20 +00:00
2020-12-12 06:08:33 +00:00
#define FETCH_LINKPTR(dest) \
asm("mov r8, %0" : "=rm" (dest));
2020-12-11 21:13:20 +00:00
#include "common-defs.h"
#endif