From 5ce339cd64b39024bdd7773ad7e82415db71ea58 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 18 Aug 2013 22:10:59 +0000 Subject: No need to test for DMT0 being valid a second time in the `save DMT and clear proper SSBR bits' code path. --- sys/arch/m88k/m88k/eh_common.S | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/m88k/m88k/eh_common.S b/sys/arch/m88k/m88k/eh_common.S index 1b4ed9198d0..dd2d6319a45 100644 --- a/sys/arch/m88k/m88k/eh_common.S +++ b/sys/arch/m88k/m88k/eh_common.S @@ -1,4 +1,4 @@ -/* $OpenBSD: eh_common.S,v 1.59 2013/08/15 19:29:10 miod Exp $ */ +/* $OpenBSD: eh_common.S,v 1.60 2013/08/18 22:10:58 miod Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -1069,15 +1069,14 @@ ASLOCAL(pfsr_done) st TMP2, %r31, EF_DMD1 st TMP3, %r31, EF_DMD2 -/* - * need to clear "appropriate" bits in the SSBR before - * we restart the FPU - */ - - ldcr TMP2, DMT0 - bb0.n DMT_VALID_BIT, TMP2, 8f /* make sure an exception in fpu_enable will not see our DMT0 */ - stcr %r0, DMT0 + stcr %r0, DMT0 + + /* + * need to clear "appropriate" bits in the SSBR before + * we restart the FPU + */ + ld TMP2, %r31, EF_DMT0 bb1 DMT_LOCK_BIT, TMP2, 1f bb1 DMT_WRITE_BIT, TMP2, 2f 1: -- cgit v1.2.3