CPU: Add a pause() method

This commit is contained in:
apio 2022-12-17 10:45:55 +01:00
parent a16f357ab9
commit 9d6235e109
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 7 additions and 0 deletions

View File

@ -25,4 +25,6 @@ namespace CPU
void print_stack_trace();
void get_stack_trace_at(Registers* regs, void (*callback)(u64, void*), void* arg);
void print_stack_trace_at(Registers* regs);
void pause();
}

View File

@ -506,6 +506,11 @@ namespace CPU
},
&frame_index);
}
void pause()
{
asm volatile("pause");
}
}
// called by kernel_yield