diff options
author | Ian Moffett <ian@osmora.org> | 2025-04-17 02:53:00 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-04-17 02:57:37 -0400 |
commit | 5f13039023890e9c634912704464601f199c672d (patch) | |
tree | 334ea5fa6fcfd3c08972de9f75e8c3b8bc04b745 /sys/arch/amd64 | |
parent | 577441588d3ed1856ce8ea00b07522a9d02a16bb (diff) |
kernel: Enable interrupts upon sched entry
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index a5fb4bf..d54ea22 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -207,6 +207,16 @@ this_cpu(void) return ci; } +/* + * Sync all system operation + */ +int +md_sync_all(void) +{ + lapic_eoi(); + return 0; +} + void cpu_startup(struct cpu_info *ci) { @@ -220,6 +230,5 @@ cpu_startup(struct cpu_info *ci) init_tss(ci); try_mitigate_spectre(); - __ASMV("sti"); /* Unmask interrupts */ lapic_init(); } |