luxos/SysCore/memory/mmngr_vi.h

25 lines
494 B
C

#ifndef __MEMORY_MANAGER_VIRTUAL__
#define __MEMORY_MANAGER_VIRTUAL__
#include "lib/pde.h"
#include "lib/pte.h"
#define PAGES_PER_TABLE 1024
#define PAGES_PER_DIR 1024
typedef unsigned virtual_address;
typedef struct {
pt_entry m_entries[PAGES_PER_TABLE];
} ptable ;
typedef struct {
pd_entry m_entries[PAGES_PER_DIR];
} pdirectory ;
//extern pdirectory* _current_directory;
extern void vmmngr_flush_tbl_entry (unsigned addr);
extern void vmmngr_initialize();
#endif