PERFORCE change 42578 for review

Peter Wemm peter at FreeBSD.org
Sun Nov 16 13:41:51 PST 2003


http://perforce.freebsd.org/chv.cgi?CH=42578

Change 42578 by peter at peter_overcee on 2003/11/16 13:41:09

	prime pc_tssp and pc_rsp0 on the BSP

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/machdep.c#69 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/machdep.c#69 (text+ko) ====

@@ -1138,6 +1138,7 @@
 	pcpu_init(pc, 0, sizeof(struct pcpu));
 	PCPU_SET(prvspace, pc);
 	PCPU_SET(curthread, &thread0);
+	PCPU_SET(tssp, &common_tss[0]);
 
 	/*
 	 * Initialize mutexes.
@@ -1201,6 +1202,7 @@
 	    KSTACK_PAGES * PAGE_SIZE - sizeof(struct pcb);
 	/* Ensure the stack is aligned to 16 bytes */
 	common_tss[0].tss_rsp0 &= ~0xF;
+	PCPU_SET(rsp0, common_tss[0].tss_rsp0);
 
 	/* doublefault stack space, runs on ist1 */
 	common_tss[0].tss_ist1 = (long)&dblfault_stack[sizeof(dblfault_stack)];


More information about the p4-projects mailing list