mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
stratosphere: fix building with latest libnx
This commit is contained in:
parent
4759c2f92c
commit
067fe2d10f
9 changed files with 11 additions and 11 deletions
|
@ -118,7 +118,7 @@ namespace ams::os::impl {
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
/* Continuously wait, until success. */
|
/* Continuously wait, until success. */
|
||||||
R_TRY_CATCH(svcWaitSynchronizationSingle(handle, U64_MAX)) {
|
R_TRY_CATCH(svcWaitSynchronizationSingle(handle, std::numeric_limits<u64>::max())) {
|
||||||
R_CATCH(svc::ResultCancelled) { continue; }
|
R_CATCH(svc::ResultCancelled) { continue; }
|
||||||
} R_END_TRY_CATCH_WITH_ABORT_UNLESS;
|
} R_END_TRY_CATCH_WITH_ABORT_UNLESS;
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ namespace ams::os::impl {
|
||||||
virtual Handle GetHandle() const = 0;
|
virtual Handle GetHandle() const = 0;
|
||||||
/* Gets the amount of time remaining until this wakes up. */
|
/* Gets the amount of time remaining until this wakes up. */
|
||||||
virtual u64 GetWakeupTime() const {
|
virtual u64 GetWakeupTime() const {
|
||||||
return U64_MAX;
|
return std::numeric_limits<u64>::max();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Interface with manager. */
|
/* Interface with manager. */
|
||||||
|
|
|
@ -51,7 +51,7 @@ namespace ams::os::impl{
|
||||||
WaitableHolderBase *objects[MaximumHandleCount];
|
WaitableHolderBase *objects[MaximumHandleCount];
|
||||||
|
|
||||||
const size_t count = this->BuildHandleArray(object_handles, objects);
|
const size_t count = this->BuildHandleArray(object_handles, objects);
|
||||||
const u64 end_time = infinite ? U64_MAX : armTicksToNs(armGetSystemTick());
|
const u64 end_time = infinite ? std::numeric_limits<u64>::max() : armTicksToNs(armGetSystemTick());
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
this->current_time = armTicksToNs(armGetSystemTick());
|
this->current_time = armTicksToNs(armGetSystemTick());
|
||||||
|
|
|
@ -44,7 +44,7 @@ namespace ams::os::impl {
|
||||||
public:
|
public:
|
||||||
/* Wait. */
|
/* Wait. */
|
||||||
WaitableHolderBase *WaitAny() {
|
WaitableHolderBase *WaitAny() {
|
||||||
return this->WaitAnyImpl(true, U64_MAX);
|
return this->WaitAnyImpl(true, std::numeric_limits<u64>::max());
|
||||||
}
|
}
|
||||||
|
|
||||||
WaitableHolderBase *TryWaitAny() {
|
WaitableHolderBase *TryWaitAny() {
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace ams::os {
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
/* Continuously wait, until success. */
|
/* Continuously wait, until success. */
|
||||||
R_TRY_CATCH(svcWaitSynchronizationSingle(this->handle.Get(), U64_MAX)) {
|
R_TRY_CATCH(svcWaitSynchronizationSingle(this->handle.Get(), std::numeric_limits<u64>::max())) {
|
||||||
R_CATCH(svc::ResultCancelled) { continue; }
|
R_CATCH(svc::ResultCancelled) { continue; }
|
||||||
} R_END_TRY_CATCH_WITH_ABORT_UNLESS;
|
} R_END_TRY_CATCH_WITH_ABORT_UNLESS;
|
||||||
|
|
||||||
|
|
|
@ -23,9 +23,9 @@ namespace ams::sf::hipc {
|
||||||
s32 unused_index;
|
s32 unused_index;
|
||||||
if (message_buf == armGetTls()) {
|
if (message_buf == armGetTls()) {
|
||||||
/* Consider: AMS_ABORT_UNLESS(message_buf_size == TlsMessageBufferSize); */
|
/* Consider: AMS_ABORT_UNLESS(message_buf_size == TlsMessageBufferSize); */
|
||||||
return svcReplyAndReceive(&unused_index, &session_handle, 1, INVALID_HANDLE, U64_MAX);
|
return svcReplyAndReceive(&unused_index, &session_handle, 1, INVALID_HANDLE, std::numeric_limits<u64>::max());
|
||||||
} else {
|
} else {
|
||||||
return svcReplyAndReceiveWithUserBuffer(&unused_index, message_buf, message_buf_size, &session_handle, 1, INVALID_HANDLE, U64_MAX);
|
return svcReplyAndReceiveWithUserBuffer(&unused_index, message_buf, message_buf_size, &session_handle, 1, INVALID_HANDLE, std::numeric_limits<u64>::max());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -522,7 +522,7 @@ namespace ams::dmnt::cheat::impl {
|
||||||
Event hook;
|
Event hook;
|
||||||
while (true) {
|
while (true) {
|
||||||
eventLoadRemote(&hook, this_ptr->HookToCreateApplicationProcess(), true);
|
eventLoadRemote(&hook, this_ptr->HookToCreateApplicationProcess(), true);
|
||||||
if (R_SUCCEEDED(eventWait(&hook, U64_MAX))) {
|
if (R_SUCCEEDED(eventWait(&hook, std::numeric_limits<u64>::max()))) {
|
||||||
this_ptr->AttachToApplicationProcess(true);
|
this_ptr->AttachToApplicationProcess(true);
|
||||||
}
|
}
|
||||||
eventClose(&hook);
|
eventClose(&hook);
|
||||||
|
@ -535,7 +535,7 @@ namespace ams::dmnt::cheat::impl {
|
||||||
/* Atomically wait (and clear) signal for new process. */
|
/* Atomically wait (and clear) signal for new process. */
|
||||||
this_ptr->debug_events_event.Wait();
|
this_ptr->debug_events_event.Wait();
|
||||||
while (true) {
|
while (true) {
|
||||||
while (R_SUCCEEDED(svcWaitSynchronizationSingle(this_ptr->GetCheatProcessHandle(), U64_MAX))) {
|
while (R_SUCCEEDED(svcWaitSynchronizationSingle(this_ptr->GetCheatProcessHandle(), std::numeric_limits<u64>::max()))) {
|
||||||
std::scoped_lock lk(this_ptr->cheat_lock);
|
std::scoped_lock lk(this_ptr->cheat_lock);
|
||||||
|
|
||||||
/* Handle any pending debug events. */
|
/* Handle any pending debug events. */
|
||||||
|
|
|
@ -25,7 +25,7 @@ namespace ams::fatal::srv {
|
||||||
/* Event creator. */
|
/* Event creator. */
|
||||||
Handle GetFatalDirtyEventReadableHandle() {
|
Handle GetFatalDirtyEventReadableHandle() {
|
||||||
Event evt;
|
Event evt;
|
||||||
R_ABORT_UNLESS(setsysBindFatalDirtyFlagEvent(&evt));
|
R_ABORT_UNLESS(setsysAcquireFatalDirtyFlagEventHandle(&evt));
|
||||||
return evt.revent;
|
return evt.revent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -418,7 +418,7 @@ namespace ams::fatal::srv {
|
||||||
|
|
||||||
Result ShowFatalTask::Run() {
|
Result ShowFatalTask::Run() {
|
||||||
/* Don't show the fatal error screen until we've verified the battery is okay. */
|
/* Don't show the fatal error screen until we've verified the battery is okay. */
|
||||||
eventWait(const_cast<Event *>(&this->context->battery_event), U64_MAX);
|
eventWait(const_cast<Event *>(&this->context->battery_event), std::numeric_limits<u64>::max());
|
||||||
|
|
||||||
return ShowFatal();
|
return ShowFatal();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue