diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-10-17 01:46:27 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-10-17 01:46:27 +0000 |
commit | 74fe337c10141c7b46dc14a8fc44882a404a47d6 (patch) | |
tree | 27b3f927aaf29fad7e5e732c2917278978cb1557 /usr.bin/units | |
parent | 9d179a1e4d1b28a722089050a209000c738a4b09 (diff) |
bring the twisting of bus_space from amd64 over to i386. this is:
src/sys/arch/amd64/amd64/bus_space.c r1.22
src/sys/arch/amd64/include/bus.h r1.27
instead of using the tag as an identifier for IO or memory mappings
that was checked inside the api, turn it into a pointer to a structure
of function pointers. the api then generally becomes a set of macros
that deref the function pointers on the callers behalf. the idea
is that following a pointer to very small functions is cheap compared
to doing compares continuously.
the kernel is smaller and the api is more cache friendly now.
the porting of this code from amd64 to i386 was done by kimberley manning
requested by and ok tedu@
Diffstat (limited to 'usr.bin/units')
0 files changed, 0 insertions, 0 deletions