2022-10-01 10:13:38 +00:00
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
namespace Utilities
|
|
|
|
{
|
|
|
|
uint64_t get_blocks_from_size(uint64_t blocksize,
|
|
|
|
uint64_t size); // Returns how many blocks of size blocksize does size occupy.
|
2022-10-12 10:56:55 +00:00
|
|
|
|
|
|
|
uint64_t get_rflags();
|
2022-10-12 11:17:58 +00:00
|
|
|
uint64_t get_top_of_stack(uint64_t bottom, uint64_t stack_pages);
|
2022-10-12 12:51:04 +00:00
|
|
|
uint64_t round_down_to_nearest_page(uint64_t addr);
|
|
|
|
uint64_t round_up_to_nearest_page(uint64_t addr);
|
2022-10-01 10:13:38 +00:00
|
|
|
}
|