diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-27 11:23:33 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-10-27 11:23:33 +0000 |
| commit | f8b1a0d9e8431393e1b47af87780c96729100a40 (patch) | |
| tree | def7ec58f980813179ece0c464f2ffd4904606a0 /arch/x86_64/src/kernel | |
| parent | 3fb2780f665eb3514ef07d2d4a83820653e35b52 (diff) | |
| download | teachos-f8b1a0d9e8431393e1b47af87780c96729100a40.tar.xz teachos-f8b1a0d9e8431393e1b47af87780c96729100a40.zip | |
Remove redundant code
Diffstat (limited to 'arch/x86_64/src/kernel')
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index 3f768ee..5186c21 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -19,14 +19,6 @@ namespace teachos::arch::kernel auto memory_information = memory::multiboot::read_multiboot2(); memory::allocator::area_frame_allocator allocator(memory_information); - auto test2 = allocator.allocate_frame(); - auto test1 = test2.value().start_address(); - auto test3 = test2.value().frame_number; - - if (test1 > test3) - { - } - size_t address = 42 * memory::paging::PAGE_TABLE_ENTRY_COUNT * memory::paging::PAGE_TABLE_ENTRY_COUNT * memory::allocator::PAGE_FRAME_SIZE; // 42th P3 entry auto page = memory::paging::virtual_page::containing_address(address); |
