62 Commits

Author SHA1 Message Date
Maschell
9a6b924aeb Fix negative alignments MemoryMappingModule-20220213-124255 2022-02-13 13:41:39 +01:00
Maschell
8203e92a2b Implement support for MEMFindContainHeap when using mapped memory 2022-02-13 13:41:39 +01:00
Maschell
79787e7dce The allocated size is now always an integral multiple of alignment. 2022-02-13 13:41:39 +01:00
Maschell
f513e1a374 Round up the size of the allocated memory to avoid heap corruption MemoryMappingModule-20220211-194006 2022-02-11 20:38:46 +01:00
Maschell
cd56a105e3 Add memory barrier to ensure memory coherence 2022-02-11 20:38:46 +01:00
Maschell
9e424205e0 Guard heap access with OSMutex 2022-02-11 20:38:46 +01:00
Maschell
f56e6938be Nop out additional branches to app panics MemoryMappingModule-20220211-193436 2022-02-11 20:33:27 +01:00
Maschell
bf67d7e029
Merge pull request #2 from wiiu-env/update_clang_format [no ci]
Update .clang-format to update the comment, macro and assignment form…
2022-02-03 15:53:29 +01:00
Maschell
cd18ab16a6 Update .clang-format to update the comment, macro and assignment formatting 2022-02-03 15:51:47 +01:00
Maschell
6db316c682 Use clang-format to format the code MemoryMappingModule-20220202-173911 MemoryMappingModule-20220202-174903 2022-02-02 18:34:27 +01:00
Maschell
07259a4f01 Change the layout of the release .zip MemoryMappingModule-20220130-160245 2022-01-30 17:01:47 +01:00
Maschell
0c4381244c Fix building with make DEBUG=1 MemoryMappingModule-20220130-124148 2022-01-30 13:40:09 +01:00
Maschell
5033473292 Formatting MemoryMappingModule-20220126-122635 2022-01-26 13:25:28 +01:00
Maschell
fcba5a9f1c Implement logging, but only when built with make DEBUG=1 2022-01-26 13:24:56 +01:00
Maschell
833a37e0cf WUMS 0.3.1 support 2022-01-26 13:21:07 +01:00
Maschell
88f4e0af29 Reduce the filesize by avoid "new" and any exceptions 2022-01-21 19:52:35 +01:00
Maschell
11d467e1c9 [CI] Fix the asset content type 2022-01-21 19:51:17 +01:00
Maschell
21e39fb642 Trust in CafeOS to figure it out 2021-12-15 17:01:36 +01:00
Maschell
a31ae37e0b Update Dockerfile to use WUMS 0.3 MemoryMappingModule-20211207-194631 2021-12-07 20:45:24 +01:00
Maschell
44676078ee Do not flush heap header to gain performance 2021-12-07 20:44:00 +01:00
Maschell
d890a6c91e Init Spinlock 2021-12-07 20:43:48 +01:00
Maschell
e11cf31b05 Revert "Replace the Spinlock with a Mutex, flush the heap header"
This reverts commit 60d000a27717e52716a725d6fe785344bbb984f4.
2021-12-03 11:44:53 +01:00
Maschell
b981a93848 Update Dockerfile MemoryMappingModule-20211106-190434 2021-11-06 20:03:27 +01:00
Maschell
c608b60a1b Patch KiGetOrPutUserData to allows usage of our mapped memory inside kernel 2021-11-06 17:06:31 +01:00
Maschell
60d000a277 Replace the Spinlock with a Mutex, flush the heap header MemoryMappingModule-20211020-215312 2021-10-20 23:52:09 +02:00
Maschell
2b68e73d9c Remove logging - this fixes booting minecraft for some reason. 2021-10-20 23:51:47 +02:00
Maschell
d36d3610ca Use a global spinlock to lock the alloc/free functions MemoryMappingModule-20210928-160139 2021-09-28 17:58:20 +02:00
Maschell
01a2396b83 Update Dockerfile MemoryMappingModule-20210924-145229 2021-09-24 16:51:19 +02:00
Maschell
d0e432fb69 Formatting and cleanup 2021-09-24 16:51:11 +02:00
Maschell
18a2889a36 Reenable logging, Update Dockerfile to use WUMS 0.2 MemoryMappingModule-20210917-162032 2021-09-17 18:19:32 +02:00
Maschell
3c22ea9404 Use latest wut, remove logging for now MemoryMappingModule-20210417-102809 2021-04-17 12:27:01 +02:00
Maschell
91b268df7f Use latest WUMS version MemoryMappingModule-20210313-130005 2021-03-13 13:59:01 +01:00
Maschell
c32079fbac Reduce the number of logged messages 2021-03-13 13:56:07 +01:00
Maschell
0089ec9f40 Use WUMS_MODULE_SKIP_WUT_INIT MemoryMappingModule-20210219-161306 2021-02-19 17:11:50 +01:00
Maschell
93d7c4a90e Update Dockerfile to use latest images MemoryMappingModule-20210109-132116 2021-01-09 14:19:32 +01:00
Maschell
1640657534 Compile using -O2 2021-01-01 01:57:16 +01:00
Maschell
9c9e1cc5ce Add DCFlushRange to HeapBlockHeader on malloc/free 2021-01-01 01:56:54 +01:00
Maschell
989b455eff Implement MemoryMapping_MEMGetAllocatableSize and MemoryMapping_MEMGetAllocatableSizeEx 2021-01-01 01:56:24 +01:00
Maschell
5ebc7e9de8 [Workflow] Use Environment Files instead of ::set-env 2020-12-26 15:57:04 +01:00
Maschell
aaf9a1a082 Add sCheckDataRange hook to allow loading .rpl files into our memory region via OSDynload_Acquire (and a custom allocator) 2020-12-26 15:52:06 +01:00
Maschell
699273c86d Rename WUMS_MODULE_INIT_BEFORE_ENTRYPOINT => WUMS_MODULE_INIT_BEFORE_RELOCATION_DONE_HOOK, add WUMS_MODULE_SKIP_ENTRYPOINT 2020-12-26 15:51:21 +01:00
Maschell
1d731aee52 Add Github action workflows for CI MemoryMappingModule-20200812-192941 2020-08-12 21:28:27 +02:00
Maschell
37c46ad67c [Docker] Use latest devkitPPC and lib versions 2020-08-12 21:28:06 +02:00
Maschell
d07aa82110 Add a Dockerfile 2020-06-27 11:17:50 +02:00
Maschell
36ba62e669 Add memory that's usable for GX2 usage 2020-06-27 11:17:38 +02:00
Maschell
360a87977a Improve logging 2020-06-13 15:53:36 +02:00
Maschell
dec7e11dfd Fix the linking with the new versions of the module libs and WUMS 2020-06-10 14:59:49 +02:00
Maschell
58f9c4f334 Make sure to call the init hook before the entrypoint. 2020-06-10 14:59:43 +02:00
Maschell
51c92881af Add kernel patches to allow usage of the memory mapping 2020-06-10 14:59:36 +02:00
Maschell
4e0010da0b Fix compiler warnings 2020-06-10 14:59:30 +02:00