File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,3 +47,5 @@ build_x86_64/
4747CMakeFiles *
4848CMakeCache *
4949cmake_install.cmake
50+
51+ dummy.disk
Original file line number Diff line number Diff line change 11
22set (PLATFORM_OBJECTS
3- ../x86_pc/acpi.cpp
4- ../x86_pc/apic.cpp
5- ../x86_pc/apic_timer.cpp
6- ../x86_pc/ioapic.cpp
7- pit.cpp
8- ../x86_pc/cpu_freq_sampling.cpp
93 os.cpp
104 serial1.cpp
115 start.asm
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- #include < os>
2- #include " ../x86_pc/acpi.hpp"
3- #include " ../x86_pc/pit.hpp"
4- #include " ../x86_pc/apic.hpp"
5- #include " ../x86_pc/apic_timer.hpp"
6- #include " ../x86_pc/ioapic.hpp"
71#include < kernel/os.hpp>
8-
9- using namespace x86 ;
10- using namespace std ::chrono;
11-
12- extern " C" uint16_t _cpu_sampling_freq_divider_;
2+ #include < smp>
133
144void __arch_poweroff ()
155{
16- __asm__ __volatile__ (" cli; hlt" );
17- for (;;);
6+ while (true ) asm (" cli; hlt" );
187}
198
209void __platform_init (){
@@ -25,7 +14,6 @@ void __arch_reboot(){}
2514void __arch_enable_legacy_irq (unsigned char ){}
2615void __arch_disable_legacy_irq (unsigned char ){}
2716
28-
2917void SMP::global_lock () noexcept {}
3018void SMP::global_unlock () noexcept {}
3119int SMP::cpu_id () noexcept { return 0 ; }
You can’t perform that action at this time.
0 commit comments