From 00ea1bdfe3d0758dc42942c5994664c51badf2f8 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 9 Mar 2015 17:27:27 +0100 Subject: Remove kernel region pf handlers ; fix forget-to-zero-out bug. --- src/kernel/include/region.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/kernel/include') 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 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); -- cgit v1.2.3