Kernel: SYS_SYNC now schedules sync to happen soon

You can pass non-zero argument to the syscall to block until the
sync has finished.
This commit is contained in:
2023-09-27 00:34:00 +03:00
parent 11db49e2d3
commit 1e6930a3bc
5 changed files with 74 additions and 17 deletions

View File

@@ -185,7 +185,7 @@ namespace Kernel
ret = Process::current().sys_stat((const char*)arg1, (struct stat*)arg2, (int)arg3);
break;
case SYS_SYNC:
ret = Process::current().sys_sync();
ret = Process::current().sys_sync((bool)arg1);
break;
case SYS_MMAP:
ret = Process::current().sys_mmap((const sys_mmap_t*)arg1);