We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9294fb3 + 85b1276 commit 615a744Copy full SHA for 615a744
2 files changed
arch/lkl/Kconfig
@@ -24,6 +24,7 @@ config LKL
24
select IP_PNP
25
select IP_PNP_DHCP
26
select TCP_CONG_BBR
27
+ select HIGH_RES_TIMERS
28
29
config OUTPUTFORMAT
30
string
arch/lkl/kernel/irq.c
@@ -52,15 +52,19 @@ static struct irq_info {
52
53
static bool irqs_enabled;
54
55
+static struct pt_regs dummy;
56
+
57
static void run_irq(int irq)
58
{
59
unsigned long flags;
60
+ struct pt_regs *old_regs = set_irq_regs((struct pt_regs *)&dummy);
61
62
/* interrupt handlers need to run with interrupts disabled */
63
local_irq_save(flags);
64
irq_enter();
65
generic_handle_irq(irq);
66
irq_exit();
67
+ set_irq_regs(old_regs);
68
local_irq_restore(flags);
69
}
70
0 commit comments