Re: segments set up/user selectors

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

 



Aiee :)

   Hello!

On Mon, Apr 29, 2002 at 12:02:08PM -0700, tune more wrote:
> question about following value in head.S
>  
> .quad 0x00cf9a000000ffff    /* 0x10 kernel 4GB code 
> .quad 0x00cf92000000ffff    /* 0x18 kernel 4GB data 
> .quad 0x00cffa000000ffff    /* 0x23 user 4GB code 
> .quad 0x00cff2000000ffff    /* 0x2B user 4GB data
> 
> 
> why user selector 0x23 and 0x28? my stupid mind is
> thinking about 0x20 and 0x28.

   
   0x23 (100 0 11) specify a DPL equals to 3 (aka ring 3), GDT, 4th entry.

   0x20 (100 0 00) would specify a DPL equals to 0, GDT, 4th entry, which 
   shouldn't be a right user selector, IMHO :)

   Same thoughts applies to 0x2B.

> please straight my foolish mind.
> thanks,

   Hope I didn't mess up things ;)

bye bye

                        -- gg sullivan

-- 
Lorenzo Cavallaro	`Gigi Sullivan' <sullivan@sikurezza.org>

Until I loved, life had no beauty;
I did not know I lived until I had loved. (Theodor Korner)

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux