mirror of
https://github.com/zeldaret/ss
synced 2026-08-17 21:33:05 -04:00
change everything to use a common types file
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
#ifndef RVL_SDK_OS_MEMORY_H
|
||||
#define RVL_SDK_OS_MEMORY_H
|
||||
#include "rvl/types.h"
|
||||
#include <common.h>
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define OS_MEM_MB_TO_B(mb) ((mb)*1024 * 1024)
|
||||
#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)
|
||||
#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);
|
||||
|
||||
Reference in New Issue
Block a user