[lkml]   [1997]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: csum_partial_copy_fromuser patch, #2
> If we don't want end up with two different codes for check/nocheck, which
> would be a wast of icache, I guess, then I think the best way would be to
> pass 0 as err to the asm routine, as you access the *err only in the
> exception handler - and there you have plenty of time to check whether err
> is NULL or not...

Why not pass the address of a dummy long word. Thats even faster than
doing the check (assuming we only write on an error and errors are
rare anyway).


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