Skip to content

Commit

Permalink
Various cleanup for OSContext
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Dec 28, 2024
1 parent d1c3a19 commit f18e2b1
Show file tree
Hide file tree
Showing 2 changed files with 314 additions and 328 deletions.
5 changes: 3 additions & 2 deletions include/dolphin/os/OSContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ typedef struct OSContext {
/* 0x1A0 */ u16 mode;
/* 0x1A2 */ u16 state;
/* 0x1A4 */ u32 gqr[8];
/* 0x1C4 */ f64 ps[32];
/* 0x1C8 */ f64 ps[32];
} OSContext;

OSContext* OS_PHYSICAL_CONTEXT AT_ADDRESS(0x800000C0);
OSContext* OS_CURRENT_CONTEXT AT_ADDRESS(0x800000D4);
OSContext* OS_CURRENT_FPU_CONTEXT AT_ADDRESS(0x800000D8);

void __OSLoadFPUContext(void);
void __OSLoadFPUContext(s32 unused0, OSContext* context);
void __OSSaveFPUContext(s32 unused0, s32 unused1, OSContext* context);
void OSSaveFPUContext(OSContext* context);
void OSSetCurrentContext(OSContext* context);
Expand Down
Loading

0 comments on commit f18e2b1

Please sign in to comment.