ia64/xen-unstable

changeset 2987:22d7d9cfcc7e

bitkeeper revision 1.1159.174.4 (4199eafc-o43U-MPvkSymdEahhBVLg)

Fix panic() so that it flushes console messages and then kills the VM
cleanly (instead of spinning).
author kaf24@freefall.cl.cam.ac.uk
date Tue Nov 16 11:56:44 2004 +0000 (2004-11-16)
parents 6ed0065e2974
children 0cf9476c362d
files linux-2.6.9-xen-sparse/arch/xen/i386/kernel/setup.c
line diff
     1.1 --- a/linux-2.6.9-xen-sparse/arch/xen/i386/kernel/setup.c	Tue Nov 16 11:56:15 2004 +0000
     1.2 +++ b/linux-2.6.9-xen-sparse/arch/xen/i386/kernel/setup.c	Tue Nov 16 11:56:44 2004 +0000
     1.3 @@ -1319,6 +1319,11 @@ void __init setup_arch(char **cmdline_p)
     1.4  
     1.5          unsigned long max_low_pfn;
     1.6  
     1.7 +	/* Force a quick death if the kernel panics. */
     1.8 +	extern int panic_timeout;
     1.9 +	if ( panic_timeout == 0 )
    1.10 +		panic_timeout = 1;
    1.11 +
    1.12  	HYPERVISOR_vm_assist(VMASST_CMD_enable,
    1.13  			     VMASST_TYPE_4gb_segments);
    1.14