diff options
author | 2015-08-26 13:59:24 +0000 | |
---|---|---|
committer | 2015-08-26 13:59:24 +0000 | |
commit | 63197b7d9d2c147f47d99cd03a1e761418ee4517 (patch) | |
tree | 67d68cb967077715f98b324049e6b1cf16aa3da3 | |
parent | MBR must have priority over GPT. (diff) | |
download | wireguard-openbsd-63197b7d9d2c147f47d99cd03a1e761418ee4517.tar.xz wireguard-openbsd-63197b7d9d2c147f47d99cd03a1e761418ee4517.zip |
Kill code that tries to handle 32-bit code that we're never going to use.
-rw-r--r-- | sys/arch/sparc64/sparc64/db_interface.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/sys/arch/sparc64/sparc64/db_interface.c b/sys/arch/sparc64/sparc64/db_interface.c index c34b23ea123..47ef28ffed0 100644 --- a/sys/arch/sparc64/sparc64/db_interface.c +++ b/sys/arch/sparc64/sparc64/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.36 2014/07/13 12:11:01 jasper Exp $ */ +/* $OpenBSD: db_interface.c,v 1.37 2015/08/26 13:59:24 kettenis Exp $ */ /* $NetBSD: db_interface.c,v 1.61 2001/07/31 06:55:47 eeh Exp $ */ /* @@ -295,33 +295,6 @@ kdb_trap(type, tf) ddb_regs.ddb_fpstate = *fpproc->p_md.md_fpstate; loadfpstate(fpproc->p_md.md_fpstate); } - /* We should do a proper copyin and xlate 64-bit stack frames, but... */ -/* if (tf->tf_tstate & TSTATE_PRIV) { */ - -#if 0 - /* make sure this is not causing ddb problems. */ - if (tf->tf_out[6] & 1) { - if ((unsigned)(tf->tf_out[6] + BIAS) > (unsigned)KERNBASE) - ddb_regs.ddb_fr = *(struct frame64 *)(tf->tf_out[6] + BIAS); - else - copyin((caddr_t)(tf->tf_out[6] + BIAS), &ddb_regs.ddb_fr, sizeof(struct frame64)); - } else { - struct frame32 tfr; - - /* First get a local copy of the frame32 */ - if ((unsigned)(tf->tf_out[6]) > (unsigned)KERNBASE) - tfr = *(struct frame32 *)tf->tf_out[6]; - else - copyin((caddr_t)(tf->tf_out[6]), &tfr, sizeof(struct frame32)); - /* Now copy each field from the 32-bit value to the 64-bit value */ - for (i=0; i<8; i++) - ddb_regs.ddb_fr.fr_local[i] = tfr.fr_local[i]; - for (i=0; i<6; i++) - ddb_regs.ddb_fr.fr_arg[i] = tfr.fr_arg[i]; - ddb_regs.ddb_fr.fr_fp = (long)tfr.fr_fp; - ddb_regs.ddb_fr.fr_pc = tfr.fr_pc; - } -#endif s = splhigh(); db_active++; |