]> Devi Nivas Git - cs3210-lab0.git/commitdiff
comment nits
authorRobert Morris <rtm@csail.mit.edu>
Mon, 12 Sep 2011 18:27:14 +0000 (14:27 -0400)
committerRobert Morris <rtm@csail.mit.edu>
Mon, 12 Sep 2011 18:27:14 +0000 (14:27 -0400)
bootasm.S

index 1bb45e3c6f3dd33a1cc7ca2c5f01d9f55d26aa6b..91a595e5cff45d19a25be177c9f8960a7d235454 100644 (file)
--- a/bootasm.S
+++ b/bootasm.S
@@ -12,8 +12,8 @@
 start:
   cli                         # BIOS enabled interrupts; disable
 
-  # Set up the important data segment registers (DS, ES, SS).
-  xorw    %ax,%ax             # Segment number zero
+  # Zero data segment registers DS, ES, and SS.
+  xorw    %ax,%ax             # Set %ax to zero
   movw    %ax,%ds             # -> Data Segment
   movw    %ax,%es             # -> Extra Segment
   movw    %ax,%ss             # -> Stack Segment
@@ -37,7 +37,7 @@ seta20.2:
   outb    %al,$0x60
 
   # Switch from real to protected mode.  Use a bootstrap GDT that makes
-  # virtual addresses map dierctly to  physical addresses so that the
+  # virtual addresses map directly to physical addresses so that the
   # effective memory map doesn't change during the transition.
   lgdt    gdtdesc
   movl    %cr0, %eax