x86: Handle double faults
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 28 Nov 2016 18:56:48 +0000 (13:56 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 29 Nov 2016 16:27:40 +0000 (11:27 -0500)
commiteb42ad68e0ecefb772aef569a8953ae77276c3fc
tree75a67a3ef8ef66f2b57f671026e23a557f24db12
parent846a77c3264c8d1add1dcbb26792f8eeb38de0d4
x86: Handle double faults

Otherwise, when the kernel stack runs into its guard page, the core will
get stuck in an infinite loop, attempting to double fault.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/smp_boot.c
kern/arch/x86/trap.c
kern/arch/x86/trapentry64.S