Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Don't restore segment registers when le...
details: https://anonhg.NetBSD.org/src/rev/82af609f2560
branches: trunk
changeset: 829721:82af609f2560
user: maxv <maxv%NetBSD.org@localhost>
date: Fri Feb 09 08:54:11 2018 +0000
description:
Don't restore segment registers when leaving NMIs. In nmitrap (and the
functions it later calls), we are not allowing the trap frame to change;
so the segregs don't change since we are running with interrupts disabled
and there is no rescheduling in this case.
diffstat:
sys/arch/amd64/amd64/amd64_trap.S | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (18 lines):
diff -r f314bc11a4ab -r 82af609f2560 sys/arch/amd64/amd64/amd64_trap.S
--- a/sys/arch/amd64/amd64/amd64_trap.S Fri Feb 09 08:42:26 2018 +0000
+++ b/sys/arch/amd64/amd64/amd64_trap.S Fri Feb 09 08:54:11 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amd64_trap.S,v 1.23 2018/01/21 11:21:40 maxv Exp $ */
+/* $NetBSD: amd64_trap.S,v 1.24 2018/02/09 08:54:11 maxv Exp $ */
/*
* Copyright (c) 1998, 2007, 2008, 2017 The NetBSD Foundation, Inc.
@@ -162,8 +162,6 @@
SVS_LEAVE_ALTSTACK
.Lnmileave:
- movw TF_ES(%rsp),%es
- movw TF_DS(%rsp),%ds
INTR_RESTORE_GPRS
addq $TF_REGSIZE+16,%rsp
iretq
Home |
Main Index |
Thread Index |
Old Index