mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-08-04 01:36:10 -04:00
Cleanup commented out code
This commit is contained in:
parent
424e47a3aa
commit
29e0abe931
@ -289,7 +289,7 @@ void setup_idt(){
|
|||||||
gdt::gdt_descriptor_t null_descriptor(){
|
gdt::gdt_descriptor_t null_descriptor(){
|
||||||
gdt::gdt_descriptor_t descriptor;
|
gdt::gdt_descriptor_t descriptor;
|
||||||
|
|
||||||
//zero-out the descriptor;
|
//zero-out the descriptor
|
||||||
*(reinterpret_cast<uint64_t*>(&descriptor)) = 0;
|
*(reinterpret_cast<uint64_t*>(&descriptor)) = 0;
|
||||||
|
|
||||||
return descriptor;
|
return descriptor;
|
||||||
|
@ -48,7 +48,7 @@ void loopback::init_driver(network::interface_descriptor& interface){
|
|||||||
interface.hw_send = send_packet;
|
interface.hw_send = send_packet;
|
||||||
|
|
||||||
interface.ip_address = network::ip::make_address(127, 0, 0, 1);
|
interface.ip_address = network::ip::make_address(127, 0, 0, 1);
|
||||||
//TODO interface.mac_address = mac;
|
//TODO maybe set a MAC address
|
||||||
}
|
}
|
||||||
|
|
||||||
void loopback::finalize_driver(network::interface_descriptor& interface){
|
void loopback::finalize_driver(network::interface_descriptor& interface){
|
||||||
|
@ -117,9 +117,6 @@ void kernel_main(){
|
|||||||
//Init the virtual file system
|
//Init the virtual file system
|
||||||
vfs::init();
|
vfs::init();
|
||||||
|
|
||||||
//Starting from here, the logging system can output logs to file
|
|
||||||
//TODO logging::to_file();
|
|
||||||
|
|
||||||
//Only install system calls when everything else is ready
|
//Only install system calls when everything else is ready
|
||||||
install_system_calls();
|
install_system_calls();
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@ uintptr_t __stack_chk_guard = STACK_CHK_GUARD;
|
|||||||
|
|
||||||
__attribute__((noreturn)) void __stack_chk_fail(){
|
__attribute__((noreturn)) void __stack_chk_fail(){
|
||||||
tlib::printf("Stack smashing detected \n");
|
tlib::printf("Stack smashing detected \n");
|
||||||
//TODO printf("pid=%u\n", scheduler::get_pid());
|
|
||||||
tlib::exit(1);
|
tlib::exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user