# HG changeset patch # User Gorka Guardiola # Date 1328295205 0 # Node ID ef374a94a139ac50f9a074076a6f6919003d1782 # Parent 40f21636c8e3b6303ca8e95ce24b3fd0a3136778 acore: interrupts are masked while in the kernel the comment was wrong. R=nixiedev, rminnich, john CC=nix-dev http://codereview.appspot.com/5625043 Committer: John Floren diff -r 40f21636c8e3 -r ef374a94a139 sys/src/nix/k10/acore.c --- a/sys/src/nix/k10/acore.c Thu Feb 02 19:29:24 2012 +0000 +++ b/sys/src/nix/k10/acore.c Fri Feb 03 18:53:25 2012 +0000 @@ -156,6 +156,8 @@ * BUG: We should setup some trapenable() mechanism for the AC, * so that code like fpu.c could arrange for handlers specific for * the AC, instead of doint that by hand here. + * + * All interrupts are masked while in the "kernel" */ void actrap(Ureg *u) @@ -188,11 +190,6 @@ case IdtIPI: m->intr++; DBG("actrap: cpu%d: IPI\n", m->machno); - /* - * Beware: BUG: we can get now IPIs while in kernel mode, - * after declaring the end of the interrupt. - * The code is not prepared for that. - */ apiceoi(IdtIPI); break; case IdtPF: