diff options
author | 2012-03-15 18:52:55 +0000 | |
---|---|---|
committer | 2012-03-15 18:52:55 +0000 | |
commit | b15e547f0e79c7d4f23ccd40756384f1562255fc (patch) | |
tree | e6e903f925b78f1e98fca6229f58c3bb37fa0ec6 /sys/arch/sgi/include | |
parent | Allow multiple backslashes at the start of a namespace path. It is pretty (diff) | |
download | wireguard-openbsd-b15e547f0e79c7d4f23ccd40756384f1562255fc.tar.xz wireguard-openbsd-b15e547f0e79c7d4f23ccd40756384f1562255fc.zip |
No longer allow bus_space_barrier() to be a NULL pointer on a given
bus_space_tag on sgi, but rather always provide at least a dummy asm("sync")
flavour. Saves a function pointer test at runtime.
Diffstat (limited to 'sys/arch/sgi/include')
-rw-r--r-- | sys/arch/sgi/include/bus.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/sgi/include/bus.h b/sys/arch/sgi/include/bus.h index 11231ce7429..f43ef116773 100644 --- a/sys/arch/sgi/include/bus.h +++ b/sys/arch/sgi/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.24 2010/08/23 16:56:15 miod Exp $ */ +/* $OpenBSD: bus.h,v 1.25 2012/03/15 18:52:55 miod Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB Sweden. All rights reserved. @@ -299,10 +299,7 @@ static __inline void bus_space_barrier(bus_space_tag_t t, bus_space_handle_t h, bus_size_t offs, bus_size_t len, int flags) { - if (t->_space_barrier != NULL) - (*(t)->_space_barrier)(t, h, offs, len, flags); - else - __asm__ __volatile__ ("sync" ::: "memory"); + (*(t)->_space_barrier)(t, h, offs, len, flags); } #define BUS_SPACE_BARRIER_READ 0x01 /* force read barrier */ |