summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar bunnei2018-08-09 19:30:51 -0400
committerGravatar GitHub2018-08-09 19:30:51 -0400
commit5191c20b71310fcaea70a32e20ccebdeb50e145f (patch)
treea7186115b592d23d9b255c9a384c6ef3e47adfec /src/core/hle/kernel
parentMerge pull request #989 from lioncash/log (diff)
parentbuffer_queue: Make reference parameter of SetPreallocatedBuffer const (diff)
downloadyuzu-5191c20b71310fcaea70a32e20ccebdeb50e145f.tar.gz
yuzu-5191c20b71310fcaea70a32e20ccebdeb50e145f.tar.xz
yuzu-5191c20b71310fcaea70a32e20ccebdeb50e145f.zip
Merge pull request #997 from lioncash/const-func
core: Make function reference parameters const where applicable
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/hle_ipc.cpp2
-rw-r--r--src/core/hle/kernel/hle_ipc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/hle_ipc.cpp b/src/core/hle/kernel/hle_ipc.cpp
index 5dd1b68d7..82a3fb5a8 100644
--- a/src/core/hle/kernel/hle_ipc.cpp
+++ b/src/core/hle/kernel/hle_ipc.cpp
@@ -201,7 +201,7 @@ ResultCode HLERequestContext::PopulateFromIncomingCommandBuffer(u32_le* src_cmdb
201 return RESULT_SUCCESS; 201 return RESULT_SUCCESS;
202} 202}
203 203
204ResultCode HLERequestContext::WriteToOutgoingCommandBuffer(Thread& thread) { 204ResultCode HLERequestContext::WriteToOutgoingCommandBuffer(const Thread& thread) {
205 std::array<u32, IPC::COMMAND_BUFFER_LENGTH> dst_cmdbuf; 205 std::array<u32, IPC::COMMAND_BUFFER_LENGTH> dst_cmdbuf;
206 Memory::ReadBlock(*thread.owner_process, thread.GetTLSAddress(), dst_cmdbuf.data(), 206 Memory::ReadBlock(*thread.owner_process, thread.GetTLSAddress(), dst_cmdbuf.data(),
207 dst_cmdbuf.size() * sizeof(u32)); 207 dst_cmdbuf.size() * sizeof(u32));
diff --git a/src/core/hle/kernel/hle_ipc.h b/src/core/hle/kernel/hle_ipc.h
index 9ce52db24..f0d07f1b6 100644
--- a/src/core/hle/kernel/hle_ipc.h
+++ b/src/core/hle/kernel/hle_ipc.h
@@ -132,7 +132,7 @@ public:
132 ResultCode PopulateFromIncomingCommandBuffer(u32_le* src_cmdbuf, Process& src_process, 132 ResultCode PopulateFromIncomingCommandBuffer(u32_le* src_cmdbuf, Process& src_process,
133 HandleTable& src_table); 133 HandleTable& src_table);
134 /// Writes data from this context back to the requesting process/thread. 134 /// Writes data from this context back to the requesting process/thread.
135 ResultCode WriteToOutgoingCommandBuffer(Thread& thread); 135 ResultCode WriteToOutgoingCommandBuffer(const Thread& thread);
136 136
137 u32_le GetCommand() const { 137 u32_le GetCommand() const {
138 return command; 138 return command;