Fixed registering memstat(2) multiple times.

This commit is contained in:
Jonas 'Sortie' Termansen 2011-12-22 12:59:48 +01:00
parent c8c08e7b90
commit a623b1b07e
1 changed files with 2 additions and 2 deletions

View File

@ -109,8 +109,6 @@ namespace Sortix
}
Page::InitPushRegion(base, length);
Syscall::Register(SYSCALL_MEMSTAT, (void*) SysMemStat);
}
// If the physical allocator couldn't handle the vast amount of
@ -124,6 +122,8 @@ namespace Sortix
// Finish allocating the top level PMLs for the kernels use.
AllocateKernelPMLs();
Syscall::Register(SYSCALL_MEMSTAT, (void*) SysMemStat);
}
void Statistics(size_t* amountused, size_t* totalmem)