From: Ben Pfaff Date: Sat, 11 Sep 2004 22:05:30 +0000 (+0000) Subject: Comments. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f31b7fd0769b818f910546ec97284cceb7450593;p=pintos-anon Comments. --- diff --git a/src/threads/loader.S b/src/threads/loader.S index 3d440d2..704b1d9 100644 --- a/src/threads/loader.S +++ b/src/threads/loader.S @@ -67,12 +67,16 @@ 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