diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2018-07-29 20:47:00 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2018-07-29 20:47:00 +0000 |
| commit | b3a7db3b066386957607fe3e5db2a4c617d4f9bc (patch) | |
| tree | 38e098013bd7db920190fbba484f491842dac2ef /sys/amd64/include | |
| parent | 70eaeb3622c3f915b892527f7b69163cbc355da3 (diff) | |
Notes
Diffstat (limited to 'sys/amd64/include')
| -rw-r--r-- | sys/amd64/include/asmacros.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/amd64/include/asmacros.h b/sys/amd64/include/asmacros.h index c4042fa65602b..46415d6fcf1e9 100644 --- a/sys/amd64/include/asmacros.h +++ b/sys/amd64/include/asmacros.h @@ -255,7 +255,9 @@ X\vec_name: movq %r15,TF_R15(%rsp) SAVE_SEGS movl $TF_HASSEGS,TF_FLAGS(%rsp) - cld + pushfq + andq $~(PSL_D|PSL_AC),(%rsp) + popfq testb $SEL_RPL_MASK,TF_CS(%rsp) /* come from kernel ? */ jz 1f /* yes, leave PCB_FULL_IRET alone */ movq PCPU(CURPCB),%r8 |
