tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Revamping optimised in_cksum/in4_cksum/in6_cksum support



On Sun, Jan 27, 2008 at 10:23:31PM +1100, Simon Burge wrote:
>                 while (mlen >= 32) {
>                         __builtin_prefetch(data + 32);
> 
> On at least some MIPS and PowerPC implementations (and possibly others)
> a prefetch on an address that isn't mapped can cause a bus error or
> similar exception.

__builtin_prefetch is not supposed to generate traps. If you can
actually trigger that, it is a GCC bug.

Joerg



Home | Main Index | Thread Index | Old Index