diff options
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 0dd13da90c..7c5a834fc9 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -2452,6 +2452,8 @@ int Process::sys$read_tsc(u32* lsw, u32* msw) if (!validate_write_typed(msw)) return -EFAULT; read_tsc(*lsw, *msw); + if (!is_superuser()) + *lsw &= ~0xfff; return 0; } |