Skip to content

Commit

Permalink
osFlash cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ethteck committed Jul 20, 2023
1 parent 72924bf commit ecbf16b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
8 changes: 8 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ SHIFT_BSS s32 D_800B0D08;
// boot.s
SHIFT_BSS u8 nuBootStack[0x2000];

//osFlash.c (IDO)
SHIFT_BSS u32 __osFlashID[4];
SHIFT_BSS OSIoMesg __osFlashMsg;
SHIFT_BSS OSMesgQueue __osFlashMessageQ;
SHIFT_BSS OSPiHandle __osFlashHandler;
SHIFT_BSS OSMesg __osFlashMsgBuf;
SHIFT_BSS s32 __osFlashVersion;

//
// End of libultra BSS
//
Expand Down
14 changes: 0 additions & 14 deletions src/os/osFlash.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
#include "ultra64.h"
#include "PR/os_flash.h"

#ifdef SHIFT
#define SHIFT_BSS
#else
#define SHIFT_BSS extern
#endif

// TODO did this work?
SHIFT_BSS u32 __osFlashID[4];
SHIFT_BSS OSIoMesg __osFlashMsg;
SHIFT_BSS OSMesgQueue __osFlashMessageQ;
SHIFT_BSS OSPiHandle __osFlashHandler;
SHIFT_BSS OSMesg __osFlashMsgBuf;
SHIFT_BSS s32 __osFlashVersion;

OSPiHandle* osFlashReInit(u8 latency, u8 pulse, u8 page_size, u8 rel_duration, u32 start) {
__osFlashHandler.baseAddress = PHYS_TO_K1(start);
__osFlashHandler.type++;
Expand Down

0 comments on commit ecbf16b

Please sign in to comment.