diff options
author | Alex Auvolat <alex@adnab.me> | 2015-03-09 17:27:27 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2015-03-09 17:27:27 +0100 |
commit | 00ea1bdfe3d0758dc42942c5994664c51badf2f8 (patch) | |
tree | 8f1ea691be085f303a56de8977b186545481a292 /src/kernel/include | |
parent | 3341e7a3a184b5bea17f0f678b40bc51c92d72a4 (diff) | |
download | kogata-00ea1bdfe3d0758dc42942c5994664c51badf2f8.tar.gz kogata-00ea1bdfe3d0758dc42942c5994664c51badf2f8.zip |
Remove kernel region pf handlers ; fix forget-to-zero-out bug.
Diffstat (limited to 'src/kernel/include')
-rw-r--r-- | src/kernel/include/region.h | 8 |
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); |