Index: x86_64.c
===================================================================
RCS file: /nfs/projects/cvs/crash/x86_64.c,v
retrieving revision 1.136
diff -u -p -r1.136 x86_64.c
--- x86_64.c	21 Dec 2009 16:21:11 -0000	1.136
+++ x86_64.c	19 Jan 2010 19:43:30 -0000
@@ -794,15 +794,36 @@ x86_64_per_cpu_init(void)
 	int i, cpus, cpunumber;
 	struct machine_specific *ms;
 
-	if (!(kt->flags & PER_CPU_OFF))
+	ms = machdep->machspec;
+
+	if (!(kt->flags & PER_CPU_OFF)) {
+		/*
+		 * Presume kernel is !CONFIG_SMP.
+		 */
+		if (symbol_exists("per_cpu__irq_stack_union")) { 
+			ms->stkinfo.ibase[0] = 
+				symbol_value("per_cpu__irq_stack_union");  
+			if ((ms->stkinfo.isize = 
+		    	    MEMBER_SIZE("irq_stack_union", "irq_stack")) <= 0)
+				ms->stkinfo.isize = 16384;
+		}
+		if (DUMPFILE() && symbol_exists("per_cpu__current_task")) {
+			if (!(ms->current = calloc(kt->cpus, sizeof(ulong))))
+				error(FATAL, 
+			    	    "cannot calloc"
+				    " %d x86_64 current pointers!\n",
+					kt->cpus);
+			get_symbol_data("per_cpu__current_task", sizeof(ulong),
+				&ms->current[0]);
+		}
+
 		return;
+	}
 
 	if (!symbol_exists("per_cpu__cpu_number") || 
 	    !symbol_exists("per_cpu__irq_stack_union"))
 		return;
 
-        ms = machdep->machspec;
-
 	for (i = cpus = 0; i < NR_CPUS; i++) {
 		if (!readmem(symbol_value("per_cpu__cpu_number") + 
 		    kt->__per_cpu_offset[i],
