kernel - Make the x86-64 double-fault exception operational
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 29 Oct 2010 19:00:35 +0000 (12:00 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 29 Oct 2010 19:00:35 +0000 (12:00 -0700)
commit093565f2299e17b9488a3a58197f6d9bab0cca9e
tree9fa87da110e8bca75f054bff4afa5d4c5b6ea19e
parente40cfbd72cead0ed2b339ac62063ce89031fc5e3
kernel - Make the x86-64 double-fault exception operational

* Finish implementing the double-fault exception.  Only cpu0 implemented
  the proper interrupt stack configuration before.  Now all cpus implement
  the proper interrupt stack.

* For x86-64 use the idle thread stack for the double-fault exception
  stack for now (probably not the best idea but better than nothing).

* For both i386 and x86-64, when a double fault occurs, report whether
  it is a generic double fault or whether it is due to a kernel stack
  guard.
sys/platform/pc32/i386/trap.c
sys/platform/pc64/x86_64/machdep.c
sys/platform/pc64/x86_64/mp_machdep.c
sys/platform/pc64/x86_64/trap.c