My kernel fails with kexec

From: Jun Koi
Date: Wed Oct 03 2007 - 00:25:16 EST


Greetings,

I have a kernel (which is not Linux kernel), and want to have it
worked with kexec. That means I want to get kexec boot my kernel.
Fortunately, kexec crashes when booting it. (with kexec -e command)

My suspect is that my kernel is not written to "support" kexec. So
could anybody tell me what is the requirement of a kernel, so it works
with kexec?

"kexec -e" spits out the below message in QEMU when booting my kernel. Any
hint where the problem lies, and on how to debug the problem?

Thanks,
Jun


(qemu) qemu: fatal: triple fault
EAX=00001500 EBX=001001f1 ECX=00000000 EDX=00004081
ESI=002ae8c0 EDI=002ac8c0 EBP=0000e098 ESP=00008ffe
EIP=00000d05 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0018 00000000 ffffffff 00cf9300
CS =4020 00040200 ffffffff 008f9f00
SS =4000 00040000 0000ffff 00009300
DS =0018 00000000 ffffffff 00cf9300
FS =0018 00000000 ffffffff 00cf9300
GS =0018 00000000 ffffffff 00cf9300
LDT=0000 00000000 00000000 00008000
TR =0080 c1fd7000 00002073 c10089fd
GDT= 0040a938 00000017
IDT= c0000000 00000000
CR0=00000010 CR2=b7ed6200 CR3=00000000 CR4=00000000
CCS=00008000 CCD=00004000 CCO=SARL
FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80
FPR0=0000000000000000 0000 FPR1=0000000000000000 0000
FPR2=0000000000000000 0000 FPR3=0000000000000000 0000
FPR4=0000000000000000 0000 FPR5=0000000000000000 0000
FPR6=f424000000000000 4012 FPR7=0000000000000000 0000
XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000
XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000
XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000
XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/