lkml.org 
[lkml]   [2002]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernel: ldt allocation failed
Jakub Jelinek wrote:

>>>
>>x86-64, interestingly, retains vestigial meaning of the %fs and %gs
>>registers (but no others) to use as a base pointer for this reason
>>alone.
>
> Well, on x86-64 this is purely x86-64 ABI designers decision, they could
> pick one of %r8 - %r15 and use that as thread pointer instead (and were
> recommended to do so).
>


Wasting an architectural register is still bloody expensive, even if 1
among 16 is less than 1 among 8. They'll be using %gs as thread pointer
in userspace and CPU pointer in kernel space.

-hpa


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.109 / U:1.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site