summaryrefslogtreecommitdiff
path: root/src/core/hle/svc.cpp
diff options
context:
space:
mode:
authorGravatar mailwl2016-04-07 11:26:12 +0300
committerGravatar mailwl2016-04-21 10:34:45 +0300
commitbd8cc69893e49ff0615c326301d8d2a5a49bee7e (patch)
treea9dfceb164977639f8945b82dbeef71733966317 /src/core/hle/svc.cpp
parentMerge pull request #1691 from linkmauve/improve-sdl-options (diff)
downloadyuzu-bd8cc69893e49ff0615c326301d8d2a5a49bee7e.tar.gz
yuzu-bd8cc69893e49ff0615c326301d8d2a5a49bee7e.tar.xz
yuzu-bd8cc69893e49ff0615c326301d8d2a5a49bee7e.zip
ac:u: stub CloseAsync; check memory size aling in svc:GetProcessInfo(type=2)
Diffstat (limited to 'src/core/hle/svc.cpp')
-rw-r--r--src/core/hle/svc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index ae54afb1c..1112a905e 100644
--- a/src/core/hle/svc.cpp
+++ b/src/core/hle/svc.cpp
@@ -860,6 +860,10 @@ static ResultCode GetProcessInfo(s64* out, Handle process_handle, u32 type) {
860 // TODO(yuriks): Type 0 returns a slightly higher number than type 2, but I'm not sure 860 // TODO(yuriks): Type 0 returns a slightly higher number than type 2, but I'm not sure
861 // what's the difference between them. 861 // what's the difference between them.
862 *out = process->heap_used + process->linear_heap_used + process->misc_memory_used; 862 *out = process->heap_used + process->linear_heap_used + process->misc_memory_used;
863 if(*out % Memory::PAGE_SIZE != 0) {
864 LOG_ERROR(Kernel_SVC, "called, memory size not page-aligned");
865 return ERR_MISALIGNED_SIZE;
866 }
863 break; 867 break;
864 case 1: 868 case 1:
865 case 3: 869 case 3: