aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/include')
-rw-r--r--src/kernel/include/region.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/kernel/include/region.h b/src/kernel/include/region.h
index eb6f7e8..2593dba 100644
--- a/src/kernel/include/region.h
+++ b/src/kernel/include/region.h
@@ -8,25 +8,19 @@
#include <paging.h>
struct region_info;
-typedef void (*kernel_pf_handler_t)(pagedir_t *pd, struct region_info *r, void* addr);
typedef struct region_info {
void* addr;
size_t size;
char* type;
- kernel_pf_handler_t pf;
} region_info_t;
void region_allocator_init(void* kernel_data_end);
-void* region_alloc(size_t size, char* type, kernel_pf_handler_t pf); // returns 0 on error
+void* region_alloc(size_t size, char* type); // returns 0 on error
region_info_t *find_region(void* addr);
void region_free(void* addr);
-// some usefull PF handlers
-// void pf_handler_unexpected(pagedir_t *pd, struct region_info *r, void* addr); // Expects never to be called
-// void pf_handler_stackoverflow(pagedir_t *pd, struct region_info *r, void* addr); // Stack overflow detected
-
// some functions for freeing regions and frames
// region_free_unmap_free : deletes a region and frees all frames that were mapped in it
void region_free_unmap_free(void* addr);