summaryrefslogtreecommitdiff
path: root/lib/libio/io.c
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2000-02-12 14:57:01 +0000
committerDoug Rabson <dfr@FreeBSD.org>2000-02-12 14:57:01 +0000
commiteb06360f04a96fb0010bd0b774f305693bc2040d (patch)
tree358fde6b3a41cda68958a9c57ede7e4f3a8a7e43 /lib/libio/io.c
parent83f1e257e02a6766b65484799ad21d82c4a5c4da (diff)
Notes
Diffstat (limited to 'lib/libio/io.c')
-rw-r--r--lib/libio/io.c25
1 files changed, 23 insertions, 2 deletions
diff --git a/lib/libio/io.c b/lib/libio/io.c
index 7abfa36f6ff2..3ccce2e4b32a 100644
--- a/lib/libio/io.c
+++ b/lib/libio/io.c
@@ -119,18 +119,39 @@ readl(void *handle, u_int32_t offset)
void
writeb(void *handle, u_int32_t offset, u_int8_t val)
{
- return ops->writeb(handle, offset, val);
+ ops->writeb(handle, offset, val);
+ __asm__ __volatile__ ("mb");
}
void
writew(void *handle, u_int32_t offset, u_int16_t val)
{
- return ops->writew(handle, offset, val);
+ ops->writew(handle, offset, val);
+ __asm__ __volatile__ ("mb");
}
void
writel(void *handle, u_int32_t offset, u_int32_t val)
{
+ ops->writel(handle, offset, val);
+ __asm__ __volatile__ ("mb");
+}
+
+void
+writeb_nb(void *handle, u_int32_t offset, u_int8_t val)
+{
+ return ops->writeb(handle, offset, val);
+}
+
+void
+writew_nb(void *handle, u_int32_t offset, u_int16_t val)
+{
+ return ops->writew(handle, offset, val);
+}
+
+void
+writel_nb(void *handle, u_int32_t offset, u_int32_t val)
+{
return ops->writel(handle, offset, val);
}