Working on reorganizing kernel.c

This commit is contained in:
2023-12-16 09:51:02 -06:00
parent df90bd7313
commit cbc1752e73
20 changed files with 363 additions and 139 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "sharedobject.h"
#include "platform/paging.h"
#include "types/physaddr.h"
#include "types/status.h"
@@ -102,6 +103,15 @@ physaddr_t current_address_space();
*/
error_t map_region(void *page, physaddr_t frame, size_t size, int flags);
/**
* @brief Maps a shared object into virtual memory.
*
* @param location
* @param object
* @return
*/
error_t map_object(void *location, shared_object_t *object);
/**
* @brief Unmaps a region in virtual memory. All pages which contain some part
* of the region specified will be unmapped.