From: Cao jin Date: Tue, 14 Aug 2018 07:03:25 +0000 (+0800) Subject: relocator16: Comments update X-Git-Tag: grub-2.04-rc1~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2374cfb71ce56bfd13bc208c72644fb6aa5ddd1;p=thirdparty%2Fgrub.git relocator16: Comments update Signed-off-by: Cao jin Reviewed-by: Daniel Kiper --- diff --git a/grub-core/lib/i386/relocator16.S b/grub-core/lib/i386/relocator16.S index c8d6f86d8..371a2ed69 100644 --- a/grub-core/lib/i386/relocator16.S +++ b/grub-core/lib/i386/relocator16.S @@ -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