nopsys / CogNOS

A Cog VM in the bare metal using the Nopsys library
33 stars 5 forks source link

Restore support for paged memory management #43

Open melkyades opened 6 years ago

melkyades commented 6 years ago

This one is not easy.

First step is to add an irq handler for isr 14 (#PF).

That irq will have to be handled synchronously. For that, we need to have a callback mechanism to reenter the VM. Years ago we used Alien FFI for that, maybe now we should use Unified FFI.

Anyway, the callbacks didn't work as easily as we'd like, we had to save some parts of the state of the VM.