<br><br><div class="gmail_quote">On Tue, Feb 19, 2013 at 10:18 PM, horseriver <span dir="ltr"><<a href="mailto:horserivers@gmail.com" target="_blank">horserivers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, Feb 18, 2013 at 12:25:43PM +0000, Anuz Pratap Singh Tomar wrote:<br>
> On Mon, Feb 18, 2013 at 1:55 AM, horseriver <<a href="mailto:horserivers@gmail.com">horserivers@gmail.com</a>> wrote:<br>
><br>
<br>
</div><div class="im">> Intel® 64 and IA-32 Architectures<br>
> Software Developer’s Manual<br>
> Volume 3A:<br>
> System Programming Guide, Part 1<br>
> page 65<br>
><br>
> The linear address of the base of the GDT is contained in the GDT register<br>
> (GDTR);<br>
> the linear address of the LDT is contained in the LDT register (LDTR).<br>
><br>
<br>
</div> Thanks!<br>
<br>
As the value is a linear address , so when load an segment descriptor from an address ,<br>
such as lss ubstruction: lss 0x10023,%esp , cpu will check to make sure this stack descriptor<br>
exist in gdt .<br>
So , we will get a linear address by the gdtr value and the descriptor's index , then *if this linear address*<br>
has not phisical page mapped , it will cause a pagefault trap.then ,how to resolve this trap?<br>
<div class="HOEnZb"><div class="h5"><br>
<br></div></div></blockquote><div>Please use reply all or add kernelnewbies to CC<br>I am not very sure of how this trap will be resolved, but you can have a look at this:<br>Understanding Linux Kernel <br>Section 9.4<br>
<br> <a href="http://www.makelinux.net/books/ulk3/understandlk-CHP-9-SECT-4">http://www.makelinux.net/books/ulk3/understandlk-CHP-9-SECT-4</a><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">
<br>
><br>
> However for 32 bit registers, this document provides some details in<br>
> protected mode:<br>
><br>
> <a href="http://home.swipnet.se/smaffy/asm/info/PMODEDetailedApproach.txt" target="_blank">http://home.swipnet.se/smaffy/asm/info/PMODEDetailedApproach.txt</a><br>
><br>
><br>
><br>
> > thanks!<br>
> ><br>
> > _______________________________________________<br>
> > Kernelnewbies mailing list<br>
> > <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> > <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
> ><br>
><br>
><br>
><br>
> --<br>
> Thank you<br>
> Warm Regards<br>
> Anuz<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thank you <br>Warm Regards<br>Anuz<br>