James Benton
f9799cf3dd
Fix __init_wut_sbrk_heap.
2018-06-15 13:59:30 +01:00
James Benton
98b6f6ec2f
wutnewlib: Allow custom fixed sbrk heap size.
...
So now either uses 90% of the available base heap, or allocates a fixed
sized heap from the default heap.
2018-06-14 09:32:37 +01:00
James Benton
1471ea4338
Change wutnewlib to implement malloc family of functions.
...
This allows us to forward them straight to default heap functions, this
is better than having to allocate a fixed heap for sbrk as it allows
people to better mix usage malloc & default heap functions.
2018-06-13 18:38:53 +01:00
James Benton
d5effaaf88
coreinit: Cleanup memory heap functions.
...
Move files to mem*heap.h.
Use MEMHeapHandle everywhere to reduce need for unecessary casts.
Rename types to match the function names better (e.g. Frame -> Frm).
2018-05-30 13:13:37 +01:00
James Benton
f7a698388c
wutnewlib: Implement the new __syscalls from upcoming devkitPPC release.
2018-05-28 11:40:22 +01:00
James Benton
b4a6eb2f78
Split out crt from wutnewlib to wutcrt.
...
Can now optionally link newlib, stdc++, devoptab.
2018-05-27 12:12:49 +01:00
James Benton
ac8a42fa7c
Change to using new gthreads implementation.
...
Assuming that --enable-threads=dkp gets merged into devkitPPC r31... :)
2018-05-26 18:25:36 +01:00
James Benton
37228a095d
Disable call to __fini as it breaks stuff.
2018-05-26 18:18:16 +01:00
James Benton
9a3cbcd2ef
wutnewlib: Call __fini for global dtors.
...
main calls __eabi which calls __init, but main doesn't call __fini?
y u do this
2018-05-25 21:20:39 +01:00
James Benton
a5a1bac28c
wutnewlib: Add sleep and usleep implementation.
2018-05-25 17:13:54 +01:00
James Benton
5b8b60b390
Add newlib syscalls.
2018-05-25 11:31:44 +01:00