mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 14:32:18 +00:00
Kernel/riscv64: Implement Processor::pause
This commit is contained in:
parent
040e0fe88c
commit
58a2e6412c
Notes:
sideshowbarker
2024-07-17 07:38:17 +09:00
Author: https://github.com/spholz
Commit: 58a2e6412c
Pull-request: https://github.com/SerenityOS/serenity/pull/23364
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 3 additions and 1 deletions
|
@ -196,7 +196,9 @@ ALWAYS_INLINE Thread* ProcessorBase<T>::current_thread()
|
|||
template<typename T>
|
||||
ALWAYS_INLINE void ProcessorBase<T>::pause()
|
||||
{
|
||||
TODO_RISCV64();
|
||||
// FIXME: Use the pause instruction directly (via .option arch, +zihintpause)
|
||||
// when we upgrade our toolchain to clang 17
|
||||
asm volatile(".word 0x0100000f");
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue