[ECOS] i386: extra descriptors in GDTs not needed?

David Vrabel dvrabel@arcom.com
Mon Jan 17 11:29:00 GMT 2005


Hi,

Various places in the i386 HAL have GDTs containing the following extra 
descriptors in the GDT (e.g. hal/i386/arch/current/src/vectors.S, 
hal/i386/pc/current/include/platform.inc):

         /* Selector 0x18 == shorter code: faults any code
          * access 0xF0000000-0xFFFFFFFF.
          */
         .word   0xFFFF
         .word   0x0000
         .byte   0x00
         .byte   0x9B
         .byte   0xC7
         .byte   0x00

         /* Selector 0x20 == data; faults any access 
0xF0000000-0xFFFFFFFF. */
         .word   0xFFFF
         .word   0x0000
         .byte   0x00
         .byte   0x93
         .byte   0xC7
         .byte   0x00

Are these descriptors actually used anywhere?  Or can they be removed? 
They don't seem particularly useful.

David Vrabel
-- 
David Vrabel, Design Engineer

Arcom, Clifton Road           Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK         Web: http://www.arcom.com/

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list