33f49fd7d2
o Optimize for memory mapped I/O by making all I/O port acceses function calls and marking the test for the IA64_BUS_SPACE_IO tag with __predict_false(). Implement the I/O port access functions in a new file, called bus_machdep.c. o Change the bus_space_handle_t for memory mapped I/O to the virtual address rather than the physical address. This eliminates the PA->VA translation for every I/O access. The handle for I/O port access is still the port number. o Move inb(), outb(), inw(), outw(), inl(), outl(), and their string variants from cpufunc.h and define them in bus.h. On ia64 these are not CPU functions at all. In bus.h they are merely aliases for the new I/O port access functions defined in bus_machdep.h. o Handle the ACPI resource bug in nexus_set_resource(). There we can do it once so that we don't have to worry about it whenever we need to write to an I/O port that is really a memory mapped address. The upshot of this change is that the KBI is better defined and that I/O port access always involves a function call, allowing us to change the actual implementation without breaking the KBI. For memory mapped I/O the virtual address is abstracted, so that we can change the VA->PA mapping in the kernel without causing an KBI breakage. The exception at this time is for bus_space_map() and bus_space_unmap(). MFC after: 1 week. |
||
---|---|---|
.. | ||
autoconf.c | ||
bus_machdep.c | ||
busdma_machdep.c | ||
clock.c | ||
context.S | ||
db_machdep.c | ||
dump_machdep.c | ||
efi.c | ||
elf_machdep.c | ||
emulate.c | ||
exception.S | ||
gdb_machdep.c | ||
genassym.c | ||
highfp.c | ||
in_cksum.c | ||
interrupt.c | ||
locore.S | ||
machdep.c | ||
mca.c | ||
mem.c | ||
mp_machdep.c | ||
nexus.c | ||
pal.S | ||
pmap.c | ||
ptrace_machdep.c | ||
sal.c | ||
sapic.c | ||
setjmp.S | ||
ssc.c | ||
sscdisk.c | ||
stack_machdep.c | ||
support.S | ||
sys_machdep.c | ||
syscall.S | ||
trap.c | ||
uio_machdep.c | ||
uma_machdep.c | ||
unaligned.c | ||
unwind.c | ||
vm_machdep.c |