grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

questions about relocator16.S


From: Cao jin
Subject: questions about relocator16.S
Date: Tue, 14 Aug 2018 15:09:43 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

Hi,

  I am learning these code, and now have 2 questions:

1. at the bottom of relocator_common.S, there is:

LOCAL(jump_vector):
        /* Jump location. Is filled by the code */
        .long   0
        .long   CODE_SEGMENT

Since it is offset & segment selector value, why is not ".word
CODE_SEGMENT", is there any subtle difference?

2. in relocator16.S, after "RELOAD_GDT", the other segment registers are
updated two times with DATA_SEGMENT & PSEUDO_REAL_DSEG, they are pretty
close, there is no memory read/write between them, so why we need the
updates with DATA_SEGMENT?

-- 
Sincerely,
Cao jin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]