kern: implement SvcSleepThread for ns > 0

This commit is contained in:
Michael Scire 2020-07-10 23:30:15 -07:00
parent f37eda6b86
commit ca9327a120
5 changed files with 79 additions and 3 deletions

View file

@ -385,6 +385,8 @@ namespace ams::kern {
Result Run();
void Exit();
Result Sleep(s64 timeout);
ALWAYS_INLINE void *GetStackTop() const { return reinterpret_cast<StackParameters *>(this->kernel_stack_top) - 1; }
ALWAYS_INLINE void *GetKernelStackTop() const { return this->kernel_stack_top; }