The trapframe argument to db_backtrace() was previously always NULL, so
this code was never executing. Modify db_trace_thread() to pass
kdb_frame if we're being asked to trace kdb_thread's stack.
Get rid of get_rsp(). It looks like this came over from i386, which
needs to take into account whether the exception triggered a CPL switch,
since SS:ESP is only pushed onto the stack if so. On amd64, SS:RSP is
pushed regardless of whether the CPL changed, so get_rsp() was doing the
wrong thing for exceptions in ring 0.