mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-08 00:10:44 +01:00
- keep .lib.rplLibs section. this allows use of --gc-sections and reduce RPX size - added a few memory functions
This commit is contained in:
parent
4afd8e16d2
commit
1a1a87a948
@ -74,6 +74,9 @@ DCTouchRange(void *addr,
|
|||||||
uint32_t size);
|
uint32_t size);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Equivalent to icbi instruction.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
ICInvalidateRange(void *addr,
|
ICInvalidateRange(void *addr,
|
||||||
uint32_t size);
|
uint32_t size);
|
||||||
|
@ -23,6 +23,16 @@ OSBlockSet(void *dst,
|
|||||||
uint8_t val,
|
uint8_t val,
|
||||||
uint32_t size);
|
uint32_t size);
|
||||||
|
|
||||||
|
uint32_t
|
||||||
|
OSEffectiveToPhysical(void *vaddr);
|
||||||
|
|
||||||
|
void*
|
||||||
|
OSAllocFromSystem(uint32_t size,
|
||||||
|
int align);
|
||||||
|
|
||||||
|
void
|
||||||
|
OSFreeToSystem(void *ptr);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -237,6 +237,9 @@ EXPORT(MEMGetNthListObject);
|
|||||||
// coreinit/memory.h
|
// coreinit/memory.h
|
||||||
EXPORT(OSBlockMove);
|
EXPORT(OSBlockMove);
|
||||||
EXPORT(OSBlockSet);
|
EXPORT(OSBlockSet);
|
||||||
|
EXPORT(OSEffectiveToPhysical);
|
||||||
|
EXPORT(OSAllocFromSystem);
|
||||||
|
EXPORT(OSFreeToSystem);
|
||||||
|
|
||||||
// coreinit/messagequeue.h
|
// coreinit/messagequeue.h
|
||||||
EXPORT(OSInitMessageQueue);
|
EXPORT(OSInitMessageQueue);
|
||||||
|
@ -180,6 +180,7 @@ SECTIONS {
|
|||||||
*/
|
*/
|
||||||
.lib.rplLibs ALIGN(32) : {
|
.lib.rplLibs ALIGN(32) : {
|
||||||
*(.lib.rplLibs)
|
*(.lib.rplLibs)
|
||||||
|
KEEP (*(.lib.rplLibs*))
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user