|
|
|
@ -52,7 +52,7 @@ u32 nvmap::IocCreate(const std::vector<u8>& input, std::vector<u8>& output) { |
|
|
|
u32 handle = next_handle++; |
|
|
|
handles[handle] = std::move(object); |
|
|
|
|
|
|
|
LOG_WARNING(Service, "(STUBBED) size 0x%08X", params.size); |
|
|
|
LOG_WARNING(Service_NVDRV, "(STUBBED) size 0x%08X", params.size); |
|
|
|
|
|
|
|
params.handle = handle; |
|
|
|
|
|
|
|
@ -74,7 +74,7 @@ u32 nvmap::IocAlloc(const std::vector<u8>& input, std::vector<u8>& output) { |
|
|
|
object->addr = params.addr; |
|
|
|
object->status = Object::Status::Allocated; |
|
|
|
|
|
|
|
LOG_WARNING(Service, "(STUBBED) Allocated address 0x%llx", params.addr); |
|
|
|
LOG_WARNING(Service_NVDRV, "(STUBBED) Allocated address 0x%llx", params.addr); |
|
|
|
|
|
|
|
std::memcpy(output.data(), ¶ms, sizeof(params)); |
|
|
|
return 0; |
|
|
|
@ -84,7 +84,7 @@ u32 nvmap::IocGetId(const std::vector<u8>& input, std::vector<u8>& output) { |
|
|
|
IocGetIdParams params; |
|
|
|
std::memcpy(¶ms, input.data(), sizeof(params)); |
|
|
|
|
|
|
|
LOG_WARNING(Service, "called"); |
|
|
|
LOG_WARNING(Service_NVDRV, "called"); |
|
|
|
|
|
|
|
auto itr = handles.find(params.handle); |
|
|
|
ASSERT(itr != handles.end()); |
|
|
|
@ -99,7 +99,7 @@ u32 nvmap::IocFromId(const std::vector<u8>& input, std::vector<u8>& output) { |
|
|
|
IocFromIdParams params; |
|
|
|
std::memcpy(¶ms, input.data(), sizeof(params)); |
|
|
|
|
|
|
|
LOG_WARNING(Service, "(STUBBED) called"); |
|
|
|
LOG_WARNING(Service_NVDRV, "(STUBBED) called"); |
|
|
|
|
|
|
|
auto itr = std::find_if(handles.begin(), handles.end(), |
|
|
|
[&](const auto& entry) { return entry.second->id == params.id; }); |
|
|
|
@ -121,7 +121,7 @@ u32 nvmap::IocParam(const std::vector<u8>& input, std::vector<u8>& output) { |
|
|
|
IocParamParams params; |
|
|
|
std::memcpy(¶ms, input.data(), sizeof(params)); |
|
|
|
|
|
|
|
LOG_WARNING(Service, "(STUBBED) called type=%u", params.type); |
|
|
|
LOG_WARNING(Service_NVDRV, "(STUBBED) called type=%u", params.type); |
|
|
|
|
|
|
|
auto itr = handles.find(params.handle); |
|
|
|
ASSERT(itr != handles.end()); |
|
|
|
|