L4 threadid ver0 and ver1 bits

Michael Hohmuth hohmuth at innocent.com
Mon May 10 11:05:16 CEST 1999


"Adam 'WeirdArms' Wiggins" <awiggins at cse.unsw.edu.au> writes:

> 	I think they were seperate in the Intel for efficiency reasons,

Yes, that's right: The way the bits are laid out in thread ids, it
takes the kernel only one AND and one OR to compute the address of the
thread control block; no shifts or lookups necessary.  (Fiasco
actually currently adds a shift because the kernel stack contained in
the thread control blocks is larger to accommodate for the fact that
higher-level languages need more stack space.)

Michael
-- 
hohmuth at innocent.com, hohmuth at inf.tu-dresden.de
http://home.pages.de/~hohmuth/



More information about the l4-hackers mailing list