summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2012-06-28 07:28:39 +0000
committerimp <imp@FreeBSD.org>2012-06-28 07:28:39 +0000
commit70f14937717a36470a6064303c7a9346e1abcf8a (patch)
tree471c872e6bc918ad44e344d193d18e7c2017e4be
parent46e01d5036389752ab56c23e167d97dfed00ab59 (diff)
downloadFreeBSD-src-70f14937717a36470a6064303c7a9346e1abcf8a.zip
FreeBSD-src-70f14937717a36470a6064303c7a9346e1abcf8a.tar.gz
Document some MP assumptions for sio.
Submitted by: bde (years ago)
-rw-r--r--sys/dev/sio/sio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index d389f45..d187a2b 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -278,6 +278,11 @@ static int sio_inited;
/* table and macro for fast conversion from a unit number to its com struct */
devclass_t sio_devclass;
+/*
+ * XXX Assmues that devclass_get_device, devclass_get_softc and
+ * device_get_softc are fast interrupt safe. The current implementation
+ * of these functions are.
+ */
#define com_addr(unit) ((struct com_s *) \
devclass_get_softc(sio_devclass, unit)) /* XXX */
OpenPOWER on IntegriCloud