mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-07-31 03:35:35 +00:00
* Start RAssertDolphin * Add OSContext * Add missing files, Prime2's ErrorHandler * Progress in ErrorHandler * comments * Don't link new code * Format code * Slight adjustments * Use u16 for OSError Former-commit-id: 7e8bc34cabd90ab0d70439dfe708b90bdb0aed0a
43 lines
515 B
C
43 lines
515 B
C
#ifndef __OSCONTEXT_H__
|
|
#define __OSCONTEXT_H__
|
|
|
|
#include <types.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OSContext {
|
|
u32 gpr[32];
|
|
u32 cr;
|
|
u32 lr;
|
|
u32 ctr;
|
|
u32 xer;
|
|
|
|
f64 fpr[32];
|
|
|
|
u32 fpscr_pad;
|
|
u32 fpscr;
|
|
|
|
u32 srr0;
|
|
u32 srr1;
|
|
|
|
u16 mode;
|
|
u16 state;
|
|
|
|
u32 gqr[8];
|
|
u32 psf_pad;
|
|
f64 psf[32];
|
|
|
|
} OSContext;
|
|
|
|
void OSSaveContext(OSContext* context);
|
|
void OSClearContext(OSContext* context);
|
|
void OSSetCurrentContext(OSContext* context);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|