Cleanup commented out code

This commit is contained in:
Baptiste Wicht 2016-09-25 21:34:09 +02:00
parent 424e47a3aa
commit 29e0abe931
4 changed files with 2 additions and 6 deletions

View File

@ -289,7 +289,7 @@ void setup_idt(){
gdt::gdt_descriptor_t null_descriptor(){
gdt::gdt_descriptor_t descriptor;
//zero-out the descriptor;
//zero-out the descriptor
*(reinterpret_cast<uint64_t*>(&descriptor)) = 0;
return descriptor;

View File

@ -48,7 +48,7 @@ void loopback::init_driver(network::interface_descriptor& interface){
interface.hw_send = send_packet;
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){

View File

@ -117,9 +117,6 @@ void kernel_main(){
//Init the virtual file system
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
install_system_calls();

View File

@ -16,7 +16,6 @@ uintptr_t __stack_chk_guard = STACK_CHK_GUARD;
__attribute__((noreturn)) void __stack_chk_fail(){
tlib::printf("Stack smashing detected \n");
//TODO printf("pid=%u\n", scheduler::get_pid());
tlib::exit(1);
}