summaryrefslogtreecommitdiffstats
path: root/include/memory.h
blob: 901060c832bffd2c4885049aa21e61415e27cfbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _JOVE_MEMORY_H
#define _JOVE_MEMORY_H 1

#include <stdint.h>
#include "object.h"

typedef uintptr_t physptr_t;
typedef uintptr_t virtptr_t;

#define KERNEL_STACK_SIZE 0x1000

void mapping_setup_init(void);
void mapping_setup(objdir_entry_t *mapping);

int mapping_try_map_obj(objdir_entry_t *mapping, uintptr_t vptr, objdir_entry_t *obj);

#endif