aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sparc64
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2002-04-09 00:57:23 +0000
committerJake Burkholder <jake@FreeBSD.org>2002-04-09 00:57:23 +0000
commit82436f106772f30797da17a4ac7f718a740ff837 (patch)
tree31040730963bcedd20d5bacad52b908dd6400403 /lib/libc/sparc64
parent530faa0f9e577f96b57a4a8c976204e7bcf64d0b (diff)
downloadsrc-82436f106772f30797da17a4ac7f718a740ff837.tar.gz
src-82436f106772f30797da17a4ac7f718a740ff837.zip
Rename some fields in struct frame to be compatible with NetBSD/OpenBSD,
and add some compatibility defines. Add fields for ins and locals to struct reg also for the same reason; these aren't filled in yet because getting at those registers sucks and I'd rather not save them in the trapframe just for this. Reorder struct reg to be ABI compatible as well. Add needed include of machine/emul.h. This gets pmdb (poor man's debugger) from OpenBSD mostly compiling but it doesn't work yet :(
Notes
Notes: svn path=/head/; revision=94254
Diffstat (limited to 'lib/libc/sparc64')
-rw-r--r--lib/libc/sparc64/fpu/fpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sparc64/fpu/fpu.c b/lib/libc/sparc64/fpu/fpu.c
index 650cf1f189a0..a35238ed2419 100644
--- a/lib/libc/sparc64/fpu/fpu.c
+++ b/lib/libc/sparc64/fpu/fpu.c
@@ -241,7 +241,7 @@ fetch_reg(struct utrapframe *uf, int reg)
* the frame.
*/
frm = (struct frame *)(uf->uf_out[6] + SPOFF);
- return (frm->f_local[reg - IREG_L0]);
+ return (frm->fr_local[reg - IREG_L0]);
}
__fpu_panic("fetch_reg: bogus register");
}