mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
kern: implement user thread start, el0 code now runs
This commit is contained in:
parent
560c340c96
commit
80b115ef57
4 changed files with 16 additions and 4 deletions
|
@ -22,7 +22,20 @@ namespace ams::kern::arch::arm64 {
|
|||
void SupervisorModeThreadStarter();
|
||||
|
||||
void OnThreadStart() {
|
||||
MESOSPHERE_TODO_IMPLEMENT();
|
||||
MESOSPHERE_ASSERT(!KInterruptManager::AreInterruptsEnabled());
|
||||
/* Send KDebug event for this thread's creation. */
|
||||
{
|
||||
KScopedInterruptEnable ei;
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
/* Handle any pending dpc. */
|
||||
while (GetCurrentThread().HasDpc()) {
|
||||
KDpcManager::HandleDpc();
|
||||
}
|
||||
|
||||
/* Clear our status as in an exception handler */
|
||||
GetCurrentThread().ClearInExceptionHandler();
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue