split out low-level memory mapping wrappers

This commit is contained in:
Daniel Micay 2018-08-29 00:53:12 -04:00
parent 8b42e8c3d6
commit 58d929c0f0
4 changed files with 47 additions and 29 deletions

10
memory.h Normal file
View file

@ -0,0 +1,10 @@
#ifndef MEMORY_H
#define MEMORY_H
#include <stddef.h>
void *memory_map(size_t size);
int memory_unmap(void *ptr, size_t size);
int memory_protect(void *ptr, size_t size, int prot);
#endif