From 14e756ba874bc742662d4af6d56a099e8637606e Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 24 Feb 1993 15:10:14 +0000 Subject: [PATCH] Enabled divide by 0 and improper trap --- mach/sparc/libsys/head_em.s | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mach/sparc/libsys/head_em.s b/mach/sparc/libsys/head_em.s index 4969bbadc..aa57dd3d6 100644 --- a/mach/sparc/libsys/head_em.s +++ b/mach/sparc/libsys/head_em.s @@ -33,6 +33,15 @@ begtext: mov %sp, %l0 sub %sp, %g4, %sp dec 12, %l0 + ! enable divide by 0 trap and improper + ! trap + st %fsr, [%l0] + ld [%l0], %o3 + set 0x09000000, %o4 + or %o3, %o4, %o3 + st %o3, [%l0] + ld [%l0], %fsr + st %o0, [%l0] st %o1, [%l0+4] st %o2, [%l0+8]