lkml.org 
[lkml]   [2006]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: i386 PDA patches use of %gs

* Jeremy Fitzhardinge <jeremy@goop.org> wrote:

> [...] The basic inner loop is:
>
> push %segreg
> mov %selectorreg, %segreg
> add $1,%segreg:offset # use the segment register
> pop %segreg

well, the most important thing i believe you didnt test: the effect of
mixing two descriptors on the _same_ selector: one %gs selector value
loaded and used by glibc, and another %gs selector value loaded and used
by the kernel, intermixed. It's the mixing that causes the descriptor
cache reload. (unless i missed some detail about your testcase)

Ingo
-
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: 2006-09-13 12:11    [W:0.193 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site