Messages in this thread |  | | From | (Alan Cox) | Subject | Re: csum_partial_copy_fromuser patch, #2 | Date | Sun, 2 Feb 1997 17:10:33 +0000 (GMT) |
| |
> 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).
Alan
|  |