summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/reg.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2011-02-16 17:50:21 +0000
committerdchagin <dchagin@FreeBSD.org>2011-02-16 17:50:21 +0000
commitf09038c073387da526965c04510840954eefe1c9 (patch)
tree62146c6eb0e72714302c3b80c1ce60ea243223cf /sys/amd64/include/reg.h
parent3e66152cbfaa6e9f75ece1cfa8cf479a1ec34bf2 (diff)
downloadFreeBSD-src-f09038c073387da526965c04510840954eefe1c9.zip
FreeBSD-src-f09038c073387da526965c04510840954eefe1c9.tar.gz
To avoid excessive code duplication create wrapper for fill regs
from stack frame. Change the trap() code to use newly created function instead of explicit regs assignment.
Diffstat (limited to 'sys/amd64/include/reg.h')
-rw-r--r--sys/amd64/include/reg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/include/reg.h b/sys/amd64/include/reg.h
index 5920843..275a998 100644
--- a/sys/amd64/include/reg.h
+++ b/sys/amd64/include/reg.h
@@ -130,6 +130,7 @@ struct dbreg {
* XXX these interfaces are MI, so they should be declared in a MI place.
*/
int fill_regs(struct thread *, struct reg *);
+int fill_frame_regs(struct trapframe *, struct reg *);
int set_regs(struct thread *, struct reg *);
int fill_fpregs(struct thread *, struct fpreg *);
int set_fpregs(struct thread *, struct fpreg *);
OpenPOWER on IntegriCloud