From: "Jan Beulich" Subject: [PATCH] properly halt machine on fatal trap Date: Thu, 06 Apr 2006 17:00:46 +0200 Message-ID: <4435493E.76F0.0078.0@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part3A1F460E.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part3A1F460E.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline So far, only the affected CPU was halted... Jan --=__Part3A1F460E.0__= Content-Type: text/plain; name="xen-fatal-trap-halt.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-fatal-trap-halt.patch" --- /home/jbeulich/src/xen/2006-04-05/xen/arch/x86/traps.c 2006-03-28 20:09:11.000000000 +0200 +++ 2006-04-05/xen/arch/x86/traps.c 2006-04-06 16:11:44.000000000 +0200 @@ -97,6 +97,8 @@ DECLARE_TRAP_HANDLER(alignment_check); DECLARE_TRAP_HANDLER(spurious_interrupt_bug); DECLARE_TRAP_HANDLER(machine_check); +void machine_halt(void); + long do_set_debugreg(int reg, unsigned long value); unsigned long do_get_debugreg(int reg); @@ -318,8 +320,7 @@ asmlinkage void fatal_trap(int trapnr, s console_force_lock(); /* Wait for manual reset. */ - for ( ; ; ) - __asm__ __volatile__ ( "hlt" ); + machine_halt(); } static inline int do_trap(int trapnr, char *str, --=__Part3A1F460E.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part3A1F460E.0__=--