Skip to content

Commit

Permalink
comment nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Morris committed Sep 12, 2011
1 parent 9b59dc4 commit 90a81b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bootasm.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 90a81b3

Please sign in to comment.