mirror of
https://github.com/zeldaret/ss
synced 2026-05-25 07:23:00 -04:00
26af4db82d
* update from dtk-template and start work towards using clangd * include <a> -> "a" * Update build.yml * remove/add non-trivial class in union warning
24 lines
570 B
C
24 lines
570 B
C
#ifndef RVL_SDK_OS_MEMORY_H
|
|
#define RVL_SDK_OS_MEMORY_H
|
|
#include "common.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define OS_MEM_MB_TO_B(mb) ((mb) * 1024 * 1024)
|
|
#define OS_MEM_B_TO_MB(mb) ((mb) / 1024 / 1024)
|
|
|
|
#define OS_MEM_IS_MEM1(addr) (((u32)(addr) & 0x30000000) == 0)
|
|
#define OS_MEM_IS_MEM2(addr) (((u32)(addr) & 0x30000000) == 0x10000000)
|
|
|
|
u32 OSGetPhysicalMem1Size(void);
|
|
u32 OSGetPhysicalMem2Size(void);
|
|
u32 OSGetConsoleSimulatedMem1Size(void);
|
|
u32 OSGetConsoleSimulatedMem2Size(void);
|
|
void __OSInitMemoryProtection(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|