2021-03-28 22:49:05 +02:00
|
|
|
#ifndef OSMEMORY_H
|
|
|
|
|
#define OSMEMORY_H
|
|
|
|
|
|
|
|
|
|
#include "dolphin/types.h"
|
2022-08-30 14:22:17 -07:00
|
|
|
#include "dolphin/os/OSInterrupt.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
static s32 OnReset(s32 param_0);
|
|
|
|
|
static void MEMIntrruptHandler(OSInterrupt interrupt, struct OSContext* context);
|
|
|
|
|
void OSProtectRange(u32 channel, void* address, u32 nBytes, u32 control);
|
|
|
|
|
static void Config24MB(void);
|
|
|
|
|
static void Config48MB(void);
|
2022-11-11 10:09:48 -08:00
|
|
|
static void RealMode(void* config);
|
2022-08-30 14:22:17 -07:00
|
|
|
void __OSInitMemoryProtection(void);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
};
|
|
|
|
|
#endif
|
2021-03-28 22:49:05 +02:00
|
|
|
|
|
|
|
|
#endif /* OSMEMORY_H */
|