Add: multiple process memory allocation

This commit is contained in:
brice.boisson
2023-09-21 17:50:46 +09:00
parent 4339d5e349
commit edb93e3967
10 changed files with 240 additions and 23 deletions

View File

@@ -1,6 +1,25 @@
#ifndef USERLAND_H
#define USERLAND_H
#include <types.h>
#include "paging.h"
#define USERLAND_BASE_ADDRESS 0x5000000
struct userland_data
{
struct page_directory_entry page_directories[1024];
struct page_table_entry page_table[1024];
};
struct userlands_data {
struct userland_data userland_data[128];
u32 page_dir[4];
};
extern struct userlands_data *userland_data;
void userland(void);
#endif /* !USERLAND_H */