PERFORCE change 28615 for review
Peter Wemm
peter at FreeBSD.org
Tue Apr 8 22:29:06 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28615
Change 28615 by peter at peter_daintree on 2003/04/08 22:28:12
tidy up
Affected files ...
.. //depot/projects/hammer/sys/x86_64/x86_64/locore.s#33 edit
Differences ...
==== //depot/projects/hammer/sys/x86_64/x86_64/locore.s#33 (text+ko) ====
@@ -71,7 +71,7 @@
* This is where the loader trampoline start us, set the ball rolling...
*
* We are called with the stack looking like this:
- * 0(%rsp) = 32 bit return address
+ * 0(%rsp) = 32 bit return address (cannot be used)
* 4(%rsp) = 32 bit modulep
* 8(%rsp) = 32 bit kernend
*
@@ -94,25 +94,10 @@
movl 8(%rbp),%eax /* kernend */
movq %rax,physfree
- /* Get onto a stack that we can trust and set up a real frame. */
+ /* Get onto a stack that we can trust - there is no going back now. */
movq $bootstack,%rsp
- pushq %rbp
- movq %rsp, %rbp
-
-#if 0
- call identify_cpu
-
- /* set up bootstrap stack */
- movq proc0kstack,%rax /* location of in-kernel stack */
- /* bootstrap stack end location */
- leaq (KSTACK_PAGES*PAGE_SIZE-PCB_SIZE)(%rax),%rsp
-
- xorq %rbp,%rbp /* mark end of frames */
+ xorq %rbp, %rbp
- movq IdlePML4,%rsi
- movq %rsi,(KSTACK_PAGES*PAGE_SIZE-PCB_SIZE+PCB_CR3)(%rax)
-#endif
-
call hammer_time /* set up cpu for unix operation */
call mi_startup /* autoconfiguration, mountroot etc */
0: hlt
@@ -142,4 +127,3 @@
movl %edx,cpu_feature # store cpu_feature
ret
#endif
-
More information about the p4-projects
mailing list