mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
Kernel: Convert Processor::in_irq() to static current_in_irq()
This closes the race window between Processor::current() and a context switch happening before in_irq().
This commit is contained in:
@@ -17,7 +17,7 @@ void __sanitizer_cov_trace_pc(void)
|
||||
if (g_in_early_boot) [[unlikely]]
|
||||
return;
|
||||
|
||||
if (Processor::current().in_irq()) [[unlikely]] {
|
||||
if (Processor::current_in_irq()) [[unlikely]] {
|
||||
// Do not trace in interrupts.
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user