]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
relocator16: Comments update
authorCao jin <caoj.fnst@cn.fujitsu.com>
Tue, 14 Aug 2018 07:03:25 +0000 (15:03 +0800)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 13 Sep 2018 08:58:32 +0000 (10:58 +0200)
Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/lib/i386/relocator16.S

index c8d6f86d8c5da69919216a463e92d8c5bfedf64a..371a2ed697b7202964277378acd3c4cb010ed972 100644 (file)
@@ -204,8 +204,9 @@ LOCAL(gate_a20_check_state):
        ret
 
 LOCAL(gate_a20_done):
-       /* we are in real mode now
-        * set up the real mode segment registers : DS, SS, ES
+       /*
+        * We are in real mode now. Set up the real mode segment registers and
+        * all the other general purpose registers. cs is updated with ljmp.
         */
        /* movw imm16, %ax.  */
        .byte   0xb8
@@ -298,7 +299,7 @@ LOCAL(gdt):
        .byte   0, 0x92, 0xCF, 0
 
        /* -- 16 bit real mode CS --
-        * base = 0x00000000, limit 0x0FFFF (1 B Granularity), present
+        * base = filled by code, limit 0x0FFFF (1 B Granularity), present
         * type = 16 bit code execute/read only/conforming, DPL = 0
         */
        .word   0xFFFF