Declare start symbol for linker's use.
[pintos-anon] / src / threads / loader.S
index 3d440d20d58d2b30c3228c65c278a82cf8d51893..7dfb7e006f7d9bb2d3cdee074632741667a2a051 100644 (file)
@@ -59,6 +59,8 @@
 
 # Code runs in real mode, which is a 16-bit segment.
 
+.globl start
+start:
        .code16
 
 # Disable interrupts.
        cli
        cld
 
-# Set up segment registers and stack.
-# Stack grows downward starting from us.
+# Set up data segments and stack.
 
        subw %ax, %ax
        movw %ax, %es
        movw %ax, %ds
+
+# Stack grows downward starting from us.
+# We don't ever use the stack so this is strictly speaking
+# unnecessary.
+
        movw %ax, %ss
        movw $0x7c00, %sp