Index: arch/amd64/src/smp/ap.S
===================================================================
--- arch/amd64/src/smp/ap.S	(revision 946b63089bf984355ad67509e859179149cd5133)
+++ arch/amd64/src/smp/ap.S	(revision ee7e6aceffda0d9cc6f708f24c23e4be36546df3)
@@ -55,5 +55,5 @@
 	movw %ax, %ds
 
-	lgdt ap_bootstrap_gdtr_boot	# initialize Global Descriptor Table register
+	lgdt real_bootstrap_gdtr_boot	# initialize Global Descriptor Table register
 	
 	movl %cr0, %eax
@@ -97,13 +97,7 @@
 .code64
 start64:
-	movq $ctx, %rax
-	movq 0(%rax), %rsp
+	movq (ctx), %rsp
 	call main_ap   # never returns
 	
-.global ap_bootstrap_gdtr_boot
-ap_bootstrap_gdtr_boot:
-	.word gdtselector(GDT_ITEMS)
-	.long KA2PA(gdt)
-
 	
 #endif /* __SMP__ */
