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)
|
|
|
|
|
2020-12-12 04:53:29 +00:00
|
|
|
#define REG_SP (15)
|
2020-12-11 21:13:20 +00:00
|
|
|
#define REG_PC (16)
|
|
|
|
#define REG_PR (17)
|
|
|
|
#define REG_SR (18)
|
2020-12-11 21:35:12 +00:00
|
|
|
#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) \
|
2021-01-03 02:17:28 +00:00
|
|
|
asm("mov r8, %0" : "=r" (dest));
|
2020-12-12 06:08:33 +00:00
|
|
|
|
2020-12-11 21:13:20 +00:00
|
|
|
#include "common-defs.h"
|
|
|
|
|
|
|
|
#endif
|