Match and link OSContext, add ability to turn off frank

This commit is contained in:
2022-12-17 22:03:45 -08:00
parent 42555103a2
commit e924a90c59
5 changed files with 564 additions and 8 deletions

View File

@@ -132,6 +132,8 @@ extern "C" {
#define OS_CONTEXT_PSF31 704
#define OS_CONTEXT_STATE_EXC 0x02u
#define OS_CONTEXT_STATE_FPSAVED 0x01u
typedef struct OSContext {
u32 gpr[32];
u32 cr;

View File

@@ -8,6 +8,8 @@
#ifdef __cplusplus
extern "C" {
#endif
#define __OS_EXCEPTION_FLOATING_POINT 7
typedef u8 __OSException;
typedef void (*__OSExceptionHandler)(__OSException exception, OSContext* context);