From a623b1b07e68388c6d4b2fb5eb9101c39a3ec905 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Thu, 22 Dec 2011 12:59:48 +0100 Subject: [PATCH] Fixed registering memstat(2) multiple times. --- sortix/x86-family/memorymanagement.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sortix/x86-family/memorymanagement.cpp b/sortix/x86-family/memorymanagement.cpp index 4ba45b7a..0a694bb0 100644 --- a/sortix/x86-family/memorymanagement.cpp +++ b/sortix/x86-family/memorymanagement.cpp @@ -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)