diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-12-15 16:28:52 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-12-15 16:28:52 +0100 |
commit | 2409f1f69a5b2444990cb17f5a8d67eafb021740 (patch) | |
tree | f26a0a9b38da29108bbcbddfbe07331f62d237dc | |
parent | 69a5179ceab731892d4912bcfba80ff91058ac0c (diff) | |
download | gnumach-2409f1f69a5b2444990cb17f5a8d67eafb021740.tar.gz gnumach-2409f1f69a5b2444990cb17f5a8d67eafb021740.tar.bz2 gnumach-2409f1f69a5b2444990cb17f5a8d67eafb021740.zip |
task_info: Fix resident_size overflow
-rw-r--r-- | kern/task.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/task.c b/kern/task.c index a85cd227..bd57ca2a 100644 --- a/kern/task.c +++ b/kern/task.c @@ -800,7 +800,7 @@ kern_return_t task_info( map = (task == kernel_task) ? kernel_map : task->map; basic_info->virtual_size = map->size; - basic_info->resident_size = pmap_resident_count(map->pmap) + basic_info->resident_size = ((rpc_vm_size_t) pmap_resident_count(map->pmap)) * PAGE_SIZE; task_lock(task); |