mborgerson / xqemu-kernel

An open-source Xbox kernel alternative, designed for use with XQEMU.
GNU General Public License v2.0
23 stars 2 forks source link

Implement proper title memory allocation #1

Open mborgerson opened 6 years ago

mborgerson commented 6 years ago

Currently the memory allocation works by just giving out memory in increasing order. This works with most of the NXDK samples because they simply make a few allocations at startup and never free, but this would fail spectacularly if any title tried to actually free/alloc. Thus, a proper memory allocator is needed.

Implement associated functions:

It may be possible to leverage parts of the Linux kernel to implement this. Recommend an earlier kernel version for simplicity.

MayeulC commented 6 years ago

Interesting resources: https://news.ycombinator.com/item?id=18180940 https://wiki.osdev.org/Memory_Allocation