NextVOD_Baremetal_Hello/include/sh4_core.h
imi415 d8e7b24931
Refactored exception routine, working trapa handler.
Signed-off-by: imi415 <imi415.public@gmail.com>
2022-09-07 22:12:54 +08:00

9 lines
146 B
C

#ifndef SH4_CORE_H
#define SH4_CORE_H
#include <stdint.h>
#define __trapa(code) asm volatile("trapa %0" :: "i" (code))
#endif // SH4_CORE_H