mirror of
https://github.com/joel16/uofw.git
synced 2024-11-23 11:39:50 +00:00
common/memory.h: Fixed KCACHED macro
This commit is contained in:
parent
51cda08188
commit
b6656a8fa3
@ -28,10 +28,10 @@
|
||||
|
||||
#define REBOOT_BASE 0x88600000 /* K0 segment (cached) */
|
||||
|
||||
#define UCACHED(ptr) (void *)((u32)(void *)(ptr) & 0x1FFFFFFF) /* KU0 - cached. */
|
||||
#define KCACHED(ptr) (void *)((u32)(void *)(ptr) | K0_BASE) /* K0 - cached */
|
||||
#define KUNCACHED(ptr) (void *)(K1_BASE | ((u32)(void *)(ptr) & 0x1FFFFFFF)) /* K1 - uncached */
|
||||
#define UUNCACHED(ptr) (void *)(KU1_BASE | ((u32)(void *)(ptr) & 0x1FFFFFFF)) /* KU1 - uncached */
|
||||
#define UCACHED(ptr) (void *)((u32)(void *)(ptr) & 0x1FFFFFFF) /* KU0 - cached. */
|
||||
#define KCACHED(ptr) (void *)(K0_BASE | ((u32)(void *)(ptr) & 0x1FFFFFFF)) /* K0 - cached */
|
||||
#define KUNCACHED(ptr) (void *)(K1_BASE | ((u32)(void *)(ptr) & 0x1FFFFFFF)) /* K1 - uncached */
|
||||
#define UUNCACHED(ptr) (void *)(KU1_BASE | ((u32)(void *)(ptr) & 0x1FFFFFFF)) /* KU1 - uncached */
|
||||
|
||||
/* Alignment */
|
||||
#define UPALIGN256(v) (((v) + 0xFF) & 0xFFFFFF00)
|
||||
|
Loading…
Reference in New Issue
Block a user