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:
parent
c8c08e7b90
commit
a623b1b07e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue