Skip to content

Commit

Permalink
mm/vmm: add put_page_top() helper function for stack pages
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
  • Loading branch information
wipawel committed Jul 11, 2022
1 parent a91ef96 commit aa28159
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/mm/vmm.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,8 @@ static inline void *get_free_page_top(uint32_t flags) {

static inline void put_page(void *page) { put_pages(page, PAGE_ORDER_4K); }

static inline void put_page_top(void *page) {
put_pages(page - PAGE_SIZE, PAGE_ORDER_4K);
}

#endif /* KTF_VMM_H */

0 comments on commit aa28159

Please sign in to comment.