mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-15 07:27:42 -04:00
Cleanup
This commit is contained in:
parent
bfc5b38310
commit
f09fde9fd7
@ -11,7 +11,6 @@
|
|||||||
#include "paging.hpp"
|
#include "paging.hpp"
|
||||||
#include "kernel.hpp"
|
#include "kernel.hpp"
|
||||||
#include "physical_allocator.hpp"
|
#include "physical_allocator.hpp"
|
||||||
#include "console.hpp"
|
|
||||||
#include "assert.hpp"
|
#include "assert.hpp"
|
||||||
#include "process.hpp"
|
#include "process.hpp"
|
||||||
#include "physical_pointer.hpp"
|
#include "physical_pointer.hpp"
|
||||||
@ -105,9 +104,7 @@ void paging::init(){
|
|||||||
auto physical_memory = physical_allocator::early_allocate(physical_memory_pages);
|
auto physical_memory = physical_allocator::early_allocate(physical_memory_pages);
|
||||||
|
|
||||||
if(!physical_memory){
|
if(!physical_memory){
|
||||||
k_print_line("Impossible to allocate enough physical memory for paging tables");
|
suspend_kernel("Impossible to allocate enough physical memory for paging tables");
|
||||||
|
|
||||||
suspend_boot();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Compute the physical offsets of the paging tables
|
//Compute the physical offsets of the paging tables
|
||||||
|
Loading…
x
Reference in New Issue
Block a user