Date: Tue, 8 Apr 2003 22:29:03 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 28615 for review Message-ID: <200304090529.h395T3Hi044592@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28615 Change 28615 by peter@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 -
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304090529.h395T3Hi044592>