circuitpython/ports/atmel-samd/supervisor
Christian Walther c7404a3ff8 Add movable allocation system.
This allows calls to `allocate_memory()` while the VM is running, it will then allocate from the GC heap (unless there is a suitable hole among the supervisor allocations), and when the VM exits and the GC heap is freed, the allocation will be moved to the bottom of the former GC heap and transformed into a proper supervisor allocation. Existing movable allocations will also be moved to defragment the supervisor heap and ensure that the next VM run gets as much memory as possible for the GC heap.

By itself this breaks terminalio because it violates the assumption that supervisor_display_move_memory() still has access to an undisturbed heap to copy the tilegrid from. It will work in many cases, but if you're unlucky you will get garbled terminal contents after exiting from the vm run that created the display. This will be fixed in the following commit, which is separate to simplify review.
2020-11-28 17:50:23 +01:00
..
internal_flash_root_pointers.h Move atmel-samd to tinyusb and support nRF flash. 2018-11-08 17:25:30 -08:00
internal_flash.c atmel-samd: add same51, feather_m4_can 2020-09-08 13:06:45 -05:00
internal_flash.h Add license to some obvious files. 2020-07-06 19:16:25 +01:00
port.c Add movable allocation system. 2020-11-28 17:50:23 +01:00
qspi_flash.c decoupling chip specific functions from EXTERNAL_FLASH_QSPI_SINGLE 2020-04-28 11:51:07 -07:00
samd21_cpu.s Mark pointers in cpu registers as in use. 2018-07-03 05:45:50 -07:00
samd51_cpu.s Mark pointers in cpu registers as in use. 2018-07-03 05:45:50 -07:00
same51_cpu.s atmel-samd: add same51, feather_m4_can 2020-09-08 13:06:45 -05:00
same54_cpu.s atmel-samd: Add support for SAM E54 family MCUs 2020-06-23 10:41:48 -05:00
usb.c supervisor: factor out, Handle USB via background callback 2020-07-15 11:49:44 -05:00