mirror of
https://github.com/zeldaret/ss
synced 2026-05-24 15:20:58 -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
27 lines
440 B
C
27 lines
440 B
C
#ifndef RVL_SDK_OS_ADDRESS_H
|
|
#define RVL_SDK_OS_ADDRESS_H
|
|
|
|
#include "common.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
static inline void *OSPhysicalToCached(u32 ofs) {
|
|
return (void *)(ofs + 0x80000000);
|
|
}
|
|
|
|
static inline void *OSPhysicalToUncached(u32 ofs) {
|
|
return (void *)(ofs + 0xC0000000);
|
|
}
|
|
|
|
static inline void *OSCachedToPhysical(const void *ofs) {
|
|
return (char *)ofs - 0x80000000;
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|