summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-04-09 00:57:23 +0000
committerjake <jake@FreeBSD.org>2002-04-09 00:57:23 +0000
commita72383027f9b9ad014841ddaa655b3e88a334d64 (patch)
tree31040730963bcedd20d5bacad52b908dd6400403 /lib/libc
parentf33b3e275b665030b8d1dea54aa4c68384c4f3bb (diff)
downloadFreeBSD-src-a72383027f9b9ad014841ddaa655b3e88a334d64.zip
FreeBSD-src-a72383027f9b9ad014841ddaa655b3e88a334d64.tar.gz
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 :(
Diffstat (limited to 'lib/libc')
-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 650cf1f..a35238e 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");
}
OpenPOWER on IntegriCloud