[parisc-linux] sys/io.h
Jes Sorensen
jes@trained-monkey.org
25 Jun 2002 14:46:27 -0400
>>>>> "Jes" == Jes Sorensen <jes@trained-monkey.org> writes:
Jes> Well then make it a syscall and do it in the kernel - yes it's
Jes> not pretty but if the architecture requires it then thats the way
Jes> to get around it.
Let me elaborate:
When the hardware is evil as you described in your mail, then it has
to go by the kernel. However if you have multiple cases, like Grant
mentioned Elroy vs Dino? then glibc can do a test the first time the
operation is done and cache that in userland for next time a request
is done - ie. when you're running on the type of hw that can do it in
userland then you don't have to go by the kernel except for the first
time.
Jes