diff options
| author | Luigi Rizzo <luigi@FreeBSD.org> | 2012-07-26 21:37:58 +0000 |
|---|---|---|
| committer | Luigi Rizzo <luigi@FreeBSD.org> | 2012-07-26 21:37:58 +0000 |
| commit | 29ecb031b666aea4eba1aaa3f88c42b7b1065980 (patch) | |
| tree | 884ead57a701ef6f1e24c9e1dd5021224bfa8d35 /sys/dev/netmap/netmap.c | |
| parent | 0fafb093b92e91ca5805e778c64c7386253d45ce (diff) | |
Notes
Diffstat (limited to 'sys/dev/netmap/netmap.c')
| -rw-r--r-- | sys/dev/netmap/netmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/netmap/netmap.c b/sys/dev/netmap/netmap.c index deb550b7978f..1698f1d99ec9 100644 --- a/sys/dev/netmap/netmap.c +++ b/sys/dev/netmap/netmap.c @@ -220,7 +220,11 @@ struct nm_bridge nm_bridges[NM_BRIDGES]; #ifndef linux static inline void prefetch (const void *x) { +#if defined(__i386__) || defined(__amd64__) __asm volatile("prefetcht0 %0" :: "m" (*(const unsigned long *)x)); +#else + (void)x; +#endif } #endif /* !linux */ |
