mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-06 14:48:17 +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);
|
||||
|
||||
|
||||
/**
|
||||
* Equivalent to icbi instruction.
|
||||
*/
|
||||
void
|
||||
ICInvalidateRange(void *addr,
|
||||
uint32_t size);
|
||||
|
@ -23,6 +23,16 @@ OSBlockSet(void *dst,
|
||||
uint8_t val,
|
||||
uint32_t size);
|
||||
|
||||
uint32_t
|
||||
OSEffectiveToPhysical(void *vaddr);
|
||||
|
||||
void*
|
||||
OSAllocFromSystem(uint32_t size,
|
||||
int align);
|
||||
|
||||
void
|
||||
OSFreeToSystem(void *ptr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -237,6 +237,9 @@ EXPORT(MEMGetNthListObject);
|
||||
// coreinit/memory.h
|
||||
EXPORT(OSBlockMove);
|
||||
EXPORT(OSBlockSet);
|
||||
EXPORT(OSEffectiveToPhysical);
|
||||
EXPORT(OSAllocFromSystem);
|
||||
EXPORT(OSFreeToSystem);
|
||||
|
||||
// coreinit/messagequeue.h
|
||||
EXPORT(OSInitMessageQueue);
|
||||
|
@ -180,6 +180,7 @@ SECTIONS {
|
||||
*/
|
||||
.lib.rplLibs ALIGN(32) : {
|
||||
*(.lib.rplLibs)
|
||||
KEEP (*(.lib.rplLibs*))
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user