Thread (1 message) 1 message, 1 author, 2000-10-12
  • (off-list ancestor, not in this archive)
  • Re: dual head r128 · David Edelsohn <hidden> · 2000-10-12

Re: dual head r128

From: David Edelsohn <hidden>
Date: 2000-10-12 16:40:17

quoted
quoted
quoted
quoted
Gabriel Paubert writes:
quoted
On the kernel side, one of the PCI IO busses will be mapped to ISA. What
I'll do is basically to change the kernel inb/outb functions to do
something like

if (addr < 64k)
do_io(isa_io_base + addr)
else
do_io(addr)
Gabriel> No please, is there anybody bloat-conscious on this damned list ? Burying
Gabriel> more and more code inside each {in,out}[bwl] is not the solution.

Gabriel> Just define a macro ISA_PORT or something like this and update the kernel
Gabriel> to replace all the in/out to fixed ports to do in/out(ISA_PORT(n)). If you
Gabriel> don't do it you'll get a nice panic so you'll find all the places quite
Gabriel> fast.

	Yes, it is very important to avoid adding many layers of branches
to the code if anyone cares about performance.

David

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help