vm: refactor page_array and functions into a separate source file

This commit is contained in:
2023-02-07 21:18:08 +00:00
parent b13907f3bc
commit 4edc7e308e
5 changed files with 97 additions and 47 deletions

13
vm/model.c Normal file
View File

@@ -0,0 +1,13 @@
#include <socks/vm.h>
static vm_model_t model;
vm_model_t vm_memory_model(void)
{
return model;
}
void vm_set_memory_model(vm_model_t m)
{
model = m;
}