Skip to contentSkip to conversation

i386: forgotten hunk of domain violation patch

PATCH Applied Jan Kiszka 2 participants 2 messages May 25, 2007 – May 27, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 i386: forgotten hunk of domain violation patch

x86_64 has it correctly, i386 is yet lacking it. Please apply for the next release.

Jan

arch/i386/kernel/ipipe.c +7 -2
Index: linux-2.6.20-ipipe/arch/i386/kernel/ipipe.c
===================================================================
@@ -680,8 +680,13 @@ fastcall int __ipipe_handle_exception(st
 	/* Track the hw interrupt state before calling the Linux
 	 * exception handler, replicating it into the virtual mask. */
 
-	if (irqs_disabled_hw())
-		local_irq_disable();
+	if (irqs_disabled_hw()) {
+		/* Do not trigger the alarm in ipipe_check_context() by using
+		 * plain local_irq_disable(). */
+		__ipipe_stall_root();
+		trace_hardirqs_off();
+		barrier();
+	}
 
 #ifdef CONFIG_KGDB
 	/* catch exception KGDB is interested in over non-root domains */
#1 lore raw
Quoted 3 lines · Jan Kiszka

x86_64 has it correctly, i386 is yet lacking it. Please apply for the next release.

Merged, thanks.

Quoted 1 line

Jan

Signature · 1 line
Philippe.