1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

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

View file

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