mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-01 07:18:22 -04:00
kern: implement all device address space svcs
This commit is contained in:
parent
9beb05da50
commit
9c4c058307
6 changed files with 427 additions and 35 deletions
|
@ -31,7 +31,6 @@ namespace ams::kern::svc {
|
|||
R_UNLESS(name[sizeof(name) - 1] == '\x00', svc::ResultOutOfRange());
|
||||
|
||||
if (max_sessions > 0) {
|
||||
MESOSPHERE_LOG("Creating Named Port %s (max sessions = %d)\n", name, max_sessions);
|
||||
/* Get the current handle table. */
|
||||
auto &handle_table = GetCurrentProcess().GetHandleTable();
|
||||
|
||||
|
@ -62,8 +61,6 @@ namespace ams::kern::svc {
|
|||
port->GetClientPort().Close();
|
||||
register_guard.Cancel();
|
||||
} else /* if (max_sessions == 0) */ {
|
||||
MESOSPHERE_LOG("Deleting Named Port %s\n", name);
|
||||
|
||||
/* Ensure that this else case is correct. */
|
||||
MESOSPHERE_AUDIT(max_sessions == 0);
|
||||
|
||||
|
@ -122,8 +119,6 @@ namespace ams::kern::svc {
|
|||
/* Validate that name is valid. */
|
||||
R_UNLESS(name[sizeof(name) - 1] == '\x00', svc::ResultOutOfRange());
|
||||
|
||||
MESOSPHERE_LOG("%s: ConnectToNamedPort(%s) was called\n", GetCurrentProcess().GetName(), name);
|
||||
|
||||
/* Get the current handle table. */
|
||||
auto &handle_table = GetCurrentProcess().GetHandleTable();
|
||||
|
||||
|
|
|
@ -22,8 +22,6 @@ namespace ams::kern::svc {
|
|||
namespace {
|
||||
|
||||
Result QueryProcessMemory(ams::svc::MemoryInfo *out_memory_info, ams::svc::PageInfo *out_page_info, ams::svc::Handle process_handle, uintptr_t address) {
|
||||
MESOSPHERE_LOG("%s: QueryProcessMemory(0x%08x, 0x%zx) was called\n", GetCurrentProcess().GetName(), process_handle, address);
|
||||
|
||||
/* Get the process. */
|
||||
KScopedAutoObject process = GetCurrentProcess().GetHandleTable().GetObject<KProcess>(process_handle);
|
||||
R_UNLESS(process.IsNotNull(), svc::ResultInvalidHandle());
|
||||
|
|
|
@ -115,9 +115,7 @@ namespace ams::kern::svc {
|
|||
}
|
||||
|
||||
Result WaitSynchronization64(int32_t *out_index, KUserPointer<const ams::svc::Handle *> handles, int32_t num_handles, int64_t timeout_ns) {
|
||||
Result result = WaitSynchronization(out_index, handles, num_handles, timeout_ns);
|
||||
MESOSPHERE_LOG("WaitSynchronization returned %08x\n", result.GetValue());
|
||||
return result;
|
||||
return WaitSynchronization(out_index, handles, num_handles, timeout_ns);
|
||||
}
|
||||
|
||||
Result CancelSynchronization64(ams::svc::Handle handle) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue