lkml.org 
[lkml]   [2004]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: When should we use likely() / unlikely() / get_unaligned() ?
From
Date
On Sun, 2004-02-08 at 15:11 -0800, David S. Miller wrote:
> That's right, for the old old ARMs they've always been broken
> with certain types of encapsulations due to this. Even just feed
> them certain kinds of odd TCP/IP option sequences and watch the
> packet handling work on corrupted header data on such older ARMs.

With the merge of uCLinux there are more machines like this too. I've
been playing with one recently where alignment exceptions are imprecise
:)

Adding a probability to get_unaligned() lets _all_ architectures set
their own optimal threshold for when to emit inline load/store code, and
when to take the exception.... and the ones which will set that
threshold at 0% become an arch-specific special case which you really
don't have to care about.

--
dwmw2


-
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 14:00    [W:0.090 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site