From 4d37268944bd4e1156c582db541c15cc66fcfdeb Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Fri, 9 May 1997 09:46:50 +0000 Subject: [PATCH] Fatal trap 13: Brain fault, commit botched. Current task: transcribing patch Time: for a coffee Faulting address: bde --- sys/i386/i386/math_emulate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/i386/i386/math_emulate.c b/sys/i386/i386/math_emulate.c index 3a5769ec6904..dcb20600fd9e 100644 --- a/sys/i386/i386/math_emulate.c +++ b/sys/i386/i386/math_emulate.c @@ -6,7 +6,7 @@ * [expediant "port" of linux 8087 emulator to 386BSD, with apologies -wfj] * * from: 386BSD 0.1 - * $Id: math_emulate.c,v 1.21 1997/02/22 09:32:30 peter Exp $ + * $Id: math_emulate.c,v 1.22 1997/05/09 04:02:58 peter Exp $ */ /* @@ -613,7 +613,7 @@ static int __regoffset[] = { tEAX, tECX, tEDX, tEBX, tESP, tEBP, tESI, tEDI }; -#define REG(x) ((int *)(curproc->p_md.md_regs[__regoffset[(x)]])) +#define REG(x) (((int *)curproc->p_md.md_regs)[__regoffset[(x)]]) static char * sib(struct trapframe * info, int mod)