summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-12-29 06:53:19 +0000
committerjake <jake@FreeBSD.org>2001-12-29 06:53:19 +0000
commitfc3b645fd1fa12728fc7a29e979fa210468d57fc (patch)
tree8ab124bb84db6c6d2bc218fcf87fa8aec685603c
parent7404706e58472863fcb4041dfae8a8e6f4acbfef (diff)
downloadFreeBSD-src-fc3b645fd1fa12728fc7a29e979fa210468d57fc.zip
FreeBSD-src-fc3b645fd1fa12728fc7a29e979fa210468d57fc.tar.gz
Change fpblock to be an array of ints instead longs.
Change fp_init_thread to take a thread instead of a pcb so we can get at the trapframe.
-rw-r--r--sys/sparc64/include/fp.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/sparc64/include/fp.h b/sys/sparc64/include/fp.h
index ebb801f..bdadacc 100644
--- a/sys/sparc64/include/fp.h
+++ b/sys/sparc64/include/fp.h
@@ -29,13 +29,11 @@
/* A block of 8 double-precision (16 single-precision) FP registers. */
struct fpblock {
- u_long fpq_l[8];
+ u_int fpb_i[16];
};
struct fpstate {
struct fpblock fp_fb[4];
- u_long fp_fsr;
- u_long fp_fprs;
};
#ifdef _KERNEL
@@ -43,9 +41,9 @@ struct fpstate {
struct pcb;
struct thread;
-void fp_init_thread(struct pcb *);
+void fp_init_thread(struct thread *);
int fp_enable_thread(struct thread *, struct trapframe *);
-int fp_exception_other(struct thread *, struct trapframe *);
+int fp_exception(struct thread *, struct trapframe *, int *);
/*
* Note: The pointers passed to the next two functions must be aligned on
* 64 byte boundaries.
OpenPOWER on IntegriCloud