Module Name: src
Committed By: jym
Date: Sat Dec 18 13:53:34 UTC 2010
Modified Files:
src/sys/arch/amd64/amd64: locore.S
Log Message:
Free tables are already zeroed in xen_pmap_bootstrap. No need to
do it a second time in assembly code.
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/amd64/amd64/locore.S
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/amd64/amd64/locore.S
diff -u src/sys/arch/amd64/amd64/locore.S:1.62 src/sys/arch/amd64/amd64/locore.S:1.63
--- src/sys/arch/amd64/amd64/locore.S:1.62 Thu Oct 21 11:43:22 2010
+++ src/sys/arch/amd64/amd64/locore.S Sat Dec 18 13:53:34 2010
@@ -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