mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-08-03 17:26:08 -04:00
New assertion
This commit is contained in:
parent
5854467636
commit
84c2fedf9f
@ -49,6 +49,8 @@ uint64_t* create_array(size_t managed_space, size_t block){
|
||||
|
||||
auto virtual_address = virtual_allocator::allocate(pages);
|
||||
|
||||
thor_assert(virtual_address, "Impossible to allocate virtual pages for the physical allocator");
|
||||
|
||||
thor_assert(paging::map_pages(virtual_address, physical_address, pages), "Impossible to map pages for the physical allocator");
|
||||
|
||||
return reinterpret_cast<uint64_t*>(virtual_address);
|
||||
|
Loading…
x
Reference in New Issue
Block a user