Skip to content

Commit

Permalink
Kernel: Remove some unnecessary zero initialization now that BSS is c…
Browse files Browse the repository at this point in the history
…leared.
  • Loading branch information
awesomekling committed Feb 7, 2019
1 parent 2e663ed commit 3fc3a8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions Kernel/Scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,9 @@ Process* Scheduler::colonel()

void Scheduler::initialize()
{
memset(&s_redirection, 0, sizeof(s_redirection));
s_redirection.selector = gdt_alloc_entry();
initialize_redirection();
s_colonel_process = Process::create_kernel_process("colonel", nullptr);
current = nullptr;
g_last_fpu_process = nullptr;
load_task_register(s_redirection.selector);
}

Expand Down
2 changes: 0 additions & 2 deletions Kernel/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ void init()
MemoryManager::initialize();
PIT::initialize();

memset(&system, 0, sizeof(system));

new BochsVGADevice;

auto new_procfs = ProcFS::create();
Expand Down

0 comments on commit 3fc3a8d

Please sign in to comment.