purge: Add a small command-line utility for purging all volatile memory

This commit is contained in:
Andreas Kling 2019-12-09 19:16:45 +01:00
parent dbb644f20c
commit dfc5eb2b6d
Notes: sideshowbarker 2024-07-19 10:54:37 +09:00

9
Userland/purge.cpp Normal file
View File

@ -0,0 +1,9 @@
#include <stdio.h>
#include <Kernel/Syscall.h>
int main(int, char**)
{
int purged_page_count = syscall(SC_purge);
printf("Purged page count: %d\n", purged_page_count);
return 0;
}