- keep .lib.rplLibs section. this allows use of --gc-sections and reduce RPX size - added a few memory functions

This commit is contained in:
dimok789 2016-11-06 21:10:42 -08:00 committed by James Benton
parent 4afd8e16d2
commit 1a1a87a948
4 changed files with 17 additions and 0 deletions

View File

@ -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);

View File

@ -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

View File

@ -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);

View File

@ -180,6 +180,7 @@ SECTIONS {
*/ */
.lib.rplLibs ALIGN(32) : { .lib.rplLibs ALIGN(32) : {
*(.lib.rplLibs) *(.lib.rplLibs)
KEEP (*(.lib.rplLibs*))
} }
/* /*