CVSROOT: /cvs Module name: src Changes by: d...@cvs.openbsd.org 2013/01/28 18:15:57
Modified files: sys/arch/amd64/include: bus.h sys/arch/i386/include: bus.h Log message: the bus_space api implies that there's a bus endianness that it will swap for you to the hosts endianness. sometimes you dont want this hand holding and just want raw access to the registers. bus_space does have stuff to do this already, but they deal with buffers which can be awkward if you just want to get or set a single register. this adds the following to i386 and amd64: bus_space_read_raw_2() bus_space_read_raw_4() bus_space_read_raw_8() bus_space_write_raw_2() bus_space_write_raw_4() bus_space_write_raw_8() sparc64 already implements this, even though it wasnt part of the official api. how handy. i'll do other archs as i can. kettenis@ and miod@ seem ok with this