#ifndef _VMM_H #define _VMM_H #include <ubixos/types.h> #include <ubixos/spinlock.h> #include <mm/paging.h> #define memAvail 1 #define memNotavail 2 #define vmmID -3 #define vmmMemoryMapAddr 0xE6667000 typedef struct _mMap mMap; struct _mMap { uInt32 pageAddr; uInt32 physicalAddr; mMap *First; mMap *Last; mMap *Next; mMap *Previous; spinLock_t *lock; }; extern int numPages; extern uInt32 freePages; extern uInt32 usedPages; mMap *mmFreePages;