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 Free tables are already zeroed in xen_p...
details: https://anonhg.NetBSD.org/src/rev/4d0859a9aba0
branches: trunk
changeset: 759868:4d0859a9aba0
user: jym <jym%NetBSD.org@localhost>
date: Sat Dec 18 13:53:34 2010 +0000
description:
Free tables are already zeroed in xen_pmap_bootstrap. No need to
do it a second time in assembly code.
diffstat:
sys/arch/amd64/amd64/locore.S | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r 02312ea1c139 -r 4d0859a9aba0 sys/arch/amd64/amd64/locore.S
--- a/sys/arch/amd64/amd64/locore.S Sat Dec 18 13:06:51 2010 +0000
+++ b/sys/arch/amd64/amd64/locore.S Sat Dec 18 13:53:34 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.62 2010/10/21 11:43:22 yamt Exp $ */
+/* $NetBSD: locore.S,v 1.63 2010/12/18 13:53:34 jym Exp $ */
/*
* Copyright-o-rama!
@@ -786,12 +786,6 @@
movq %rax, %rsi
movq %rsi,(_C_LABEL(lwp0)+L_PCB) /* XXX L_PCB != uarea */
- xorq %rax,%rax
- movq %rsi,%rdi
- movq $USPACE,%rcx
- rep
- stosb
-
/*
* Set new stack and clear segments
*/
@@ -799,6 +793,7 @@
leaq (USPACE-FRAMESIZE)(%rsi),%rsp
xorq %rbp,%rbp
+ xorw %ax,%ax
movw %ax,%gs
movw %ax,%fs
Home |
Main Index |
Thread Index |
Old Index