diff options
| author | 2003-02-17 01:29:19 +0000 | |
|---|---|---|
| committer | 2003-02-17 01:29:19 +0000 | |
| commit | eb79e960df2d323f47be3c916d19f2570b9aacad (patch) | |
| tree | c56e5883e53ec2ca6418a6e570d16e872915ab1c /sys/dev/sbus/asio.c | |
| parent | sync (diff) | |
| download | wireguard-openbsd-eb79e960df2d323f47be3c916d19f2570b9aacad.tar.xz wireguard-openbsd-eb79e960df2d323f47be3c916d19f2570b9aacad.zip | |
Add support for the Sun Enterprise 450
Reduce the size of a GENERIC kernel by ~190k
Remove the nasty pointer/bus_space_handle_t casts
Adds debug bus_space code including the ability to trace
bus operations (it actually works now).
The following rules are now followed (and verfified by the debug
code):
1. A "bus_space_handle_t" may only be used with the
"bus_space_tag_t" that created it.
2. Only "bus_space_map()" may create "bus_space_handle_t"s.
3. A "bus_space_handle_t" may not be modified after it has
been created (other than being destroyed by "bus_space_unmap()").
Thanks to help from mcbride, marc, jason, drahn, to anyone that might
have slipped my mind at the moment.
ok jason@, deraadt@
Diffstat (limited to 'sys/dev/sbus/asio.c')
| -rw-r--r-- | sys/dev/sbus/asio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sbus/asio.c b/sys/dev/sbus/asio.c index 7d42e909f29..ed4dc00f389 100644 --- a/sys/dev/sbus/asio.c +++ b/sys/dev/sbus/asio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asio.c,v 1.5 2002/04/08 17:49:42 jason Exp $ */ +/* $OpenBSD: asio.c,v 1.6 2003/02/17 01:29:20 henric Exp $ */ /* * Copyright (c) 2002 Jason L. Wright (jason@thought.net) @@ -182,7 +182,7 @@ asio_print(aux, name) void *aux; const char *name; { - struct asio_attach_args *aaa; + struct asio_attach_args *aaa = aux; if (name != NULL) printf("%s at %s", aaa->aaa_name, name); @@ -231,7 +231,7 @@ com_asio_attach(parent, self, aux) sc->sc_iot = aaa->aaa_iot; sc->sc_ioh = aaa->aaa_ioh; - sc->sc_iobase = sc->sc_ioh; + sc->sc_iobase = 0; /* XXX WTF is iobase for? It used to be the lower 32 bits of ioh's vaddr... */ sc->sc_hwflags = 0; sc->sc_swflags = 0; sc->sc_frequency = BAUD_BASE; |
