diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2018-07-10 08:57:45 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2018-07-10 08:57:45 +0000 |
commit | 483610d50e2729e18229944dab194723526bfe85 (patch) | |
tree | 2b1243256d9c0ed8bb2192d9b3d68a2e82f1bd11 /sys/arch/amd64/include | |
parent | f0359d3e2df7576c7f0be76fe9b92fd160739735 (diff) |
Drop the ignored selectors (tf_[defg]s) from the trap and interrupt frames.
ok mlarkin@ deraadt@ mpi@ kettenis@
Diffstat (limited to 'sys/arch/amd64/include')
-rw-r--r-- | sys/arch/amd64/include/frame.h | 10 | ||||
-rw-r--r-- | sys/arch/amd64/include/frameasm.h | 5 |
2 files changed, 3 insertions, 12 deletions
diff --git a/sys/arch/amd64/include/frame.h b/sys/arch/amd64/include/frame.h index 68b72ec04db..19691ff19c5 100644 --- a/sys/arch/amd64/include/frame.h +++ b/sys/arch/amd64/include/frame.h @@ -1,4 +1,4 @@ -/* $OpenBSD: frame.h,v 1.9 2018/07/03 20:15:57 guenther Exp $ */ +/* $OpenBSD: frame.h,v 1.10 2018/07/10 08:57:44 guenther Exp $ */ /* $NetBSD: frame.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $ */ /*- @@ -97,10 +97,6 @@ struct trapframe { int64_t tf_err; /* not the hardware position */ int64_t tf_rbx; int64_t tf_rax; - int64_t tf_gs; - int64_t tf_fs; - int64_t tf_es; - int64_t tf_ds; int64_t tf_trapno; int64_t tf_rbp; /* hardware puts err here, INTRENTRY() moves it up */ /* below portion defined in hardware */ @@ -131,10 +127,6 @@ struct intrframe { int64_t if_err; /* IREENT_MAGIC if resume/recurse */ int64_t if_rbx; int64_t if_rax; - int64_t tf_gs; - int64_t tf_fs; - int64_t tf_es; - int64_t tf_ds; int64_t if_ppl; /* previous priority level */ int64_t if_rbp; /* below portion defined in hardware */ diff --git a/sys/arch/amd64/include/frameasm.h b/sys/arch/amd64/include/frameasm.h index 0c5a6a7f881..05a9ecb8b2a 100644 --- a/sys/arch/amd64/include/frameasm.h +++ b/sys/arch/amd64/include/frameasm.h @@ -1,4 +1,4 @@ -/* $OpenBSD: frameasm.h,v 1.17 2018/07/09 08:35:36 guenther Exp $ */ +/* $OpenBSD: frameasm.h,v 1.18 2018/07/10 08:57:44 guenther Exp $ */ /* $NetBSD: frameasm.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $ */ #ifndef _AMD64_MACHINE_FRAMEASM_H @@ -80,7 +80,7 @@ INTRENTRY_LABEL(label): /* from kernel */ \ INTR_CLEAR_GPRS #define INTR_ENTRY_KERN \ - subq $152,%rsp ; \ + subq $120,%rsp ; \ movq %rcx,TF_RCX(%rsp) ; \ /* the hardware puts err next to %rip, we move it elsewhere and */ \ /* later put %rbp in this slot to make it look like a call frame */ \ @@ -112,7 +112,6 @@ INTRENTRY_LABEL(label): /* from kernel */ \ /* For faking up an interrupt frame when we're already in the kernel */ #define INTR_REENTRY \ - subq $32,%rsp ; \ INTR_SAVE_GPRS #define INTRFASTEXIT \ |