mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-08 00:10:44 +01:00
coreinit: Add default heap data exports.
This commit is contained in:
parent
c412250d48
commit
766e832363
@ -407,3 +407,13 @@ OSGetTitleID
|
|||||||
|
|
||||||
// coreinit/internal.h
|
// coreinit/internal.h
|
||||||
__os_snprintf
|
__os_snprintf
|
||||||
|
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Data exports
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
:DATA
|
||||||
|
// coreinit/defaultheap.h
|
||||||
|
MEMAllocFromDefaultHeap
|
||||||
|
MEMAllocFromDefaultHeapEx
|
||||||
|
MEMFreeToDefaultHeap
|
||||||
|
26
include/coreinit/defaultheap.h
Normal file
26
include/coreinit/defaultheap.h
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <wut.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \defgroup coreinit_defaultheap Default Heap
|
||||||
|
* \ingroup coreinit
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef void *(*MEMAllocFromDefaultHeapFn)(uint32_t size);
|
||||||
|
typedef void *(*MEMAllocFromDefaultHeapExFn)(uint32_t size, int32_t alignment);
|
||||||
|
typedef void (*MEMFreeToDefaultHeapFn)(void *ptr);
|
||||||
|
|
||||||
|
extern MEMAllocFromDefaultHeapFn MEMAllocFromDefaultHeap;
|
||||||
|
extern MEMAllocFromDefaultHeapExFn MEMAllocFromDefaultHeapEx;
|
||||||
|
extern MEMFreeToDefaultHeapFn MEMFreeToDefaultHeap;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
@ -176,6 +176,10 @@ SECTIONS
|
|||||||
*(.fimport_vpad)
|
*(.fimport_vpad)
|
||||||
} > loadmem
|
} > loadmem
|
||||||
|
|
||||||
|
.dimport_coreinit ALIGN(16) : {
|
||||||
|
*(.dimport_coreinit)
|
||||||
|
} > loadmem
|
||||||
|
|
||||||
.symtab ALIGN(4) : {
|
.symtab ALIGN(4) : {
|
||||||
*(.symtab)
|
*(.symtab)
|
||||||
} > loadmem
|
} > loadmem
|
||||||
|
Loading…
Reference in New Issue
Block a user