提交 15868c4b 创建 作者: rsc's avatar rsc

better comment

上级 f0721f1b
...@@ -33,13 +33,9 @@ start: ...@@ -33,13 +33,9 @@ start:
movw $start,%sp # Stack Pointer movw $start,%sp # Stack Pointer
# Enable A20: # Enable A20:
# For fascinating historical reasons (related to the fact that # For backwards compatibility with the earliest PCs, physical
# the earliest 8086-based PCs could only address 1MB of physical # address line 20 is tied low, so that addresses higher than
# memory and subsequent 80286-based PCs wanted to retain maximum # 1MB wrap around to zero by default. This code undoes this.
# compatibility), physical address line 20 is tied to low when the
# machine boots. Obviously this a bit of a drag for us, especially
# when trying to address memory above 1MB. This code undoes this.
seta20.1: seta20.1:
inb $0x64,%al # Get status inb $0x64,%al # Get status
testb $0x2,%al # Busy? testb $0x2,%al # Busy?
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论