Doh! I screwed up. Sorry.
Selectors (16-bits) have a 2-bit privledge level, and 1 bit that
says the descriptor is in the GDT or LDT. Like I said, there are
8191 descriptors <- I should have read what I wrote!
Max NR_TASKS on x86 architecture:
My new guess is: ( 8192 - 8 ) >> 1 = 4092
If APM is enabled: ( 8192 - 11 ) >> 1 = 4090
Besides, the GDTR has only a 16-bit limit (each descriptor is 8 bytes).
-- Andrew E. Mileski mailto:aem@ott.hookup.net http://www.redhat.com/~aem/ Linux Plug-and-Play Project Leader http://www.redhat.com/linux-info/pnp/ PGP public keys are available from http://www.redhat.com/~aem/pgp-keys.txt