Working on reorganizing kernel.c
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user