Skip to content

Commit

Permalink
pmm: Housekeeping.
Browse files Browse the repository at this point in the history
Signed-off-by: TunaCici <[email protected]>
  • Loading branch information
TunaCici committed Jan 10, 2024
1 parent f9807c2 commit b95868d
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 113 deletions.
4 changes: 2 additions & 2 deletions Kernel/Include/Memory/Physical.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ typedef struct free_area_struct {
uint8_t *map;
} free_area_t;

uint64_t init_allocator(const uint8_t *startAddr, const uint8_t *endAddr);
uint64_t init_allocator(const uint8_t *start, const uint8_t *end);

/* Allocate a single page / 2^order number of pages */
void* alloc_page();
void* alloc_pages(const uint32_t order);

void free_page(void *targetAddr);
void free_page(void *addr);
void free_pages(void *targetAddr, const uint32_t order);

/* START DEBUG ONLY */
Expand Down
Loading

0 comments on commit b95868d

Please sign in to comment.