mirror of
https://github.com/zeldaret/ss
synced 2026-08-17 13:29:24 -04:00
change everything to use a common types file
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
#ifndef RVL_SDK_OS_ADDRESS_H
|
||||
#define RVL_SDK_OS_ADDRESS_H
|
||||
#include "rvl/types.h"
|
||||
#include <common.h>
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
static inline void* OSPhysicalToCached(u32 ofs) {
|
||||
return (void*)(ofs + 0x80000000);
|
||||
static inline void *OSPhysicalToCached(u32 ofs) {
|
||||
return (void *)(ofs + 0x80000000);
|
||||
}
|
||||
|
||||
static inline void* OSPhysicalToUncached(u32 ofs) {
|
||||
return (void*)(ofs + 0xC0000000);
|
||||
static inline void *OSPhysicalToUncached(u32 ofs) {
|
||||
return (void *)(ofs + 0xC0000000);
|
||||
}
|
||||
|
||||
static inline void* OSCachedToPhysical(const void* ofs) {
|
||||
return (char*)ofs - 0x80000000;
|
||||
static inline void *OSCachedToPhysical(const void *ofs) {
|
||||
return (char *)ofs - 0x80000000;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user