CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2014/03/14 04:47:21

Modified files:
        share/man/man9 : Makefile 
        sys/arch/powerpc/include: endian.h 
        sys/arch/sparc64/include: endian.h 
        sys/sys        : endian.h 
Added files:
        share/man/man9 : bemtoh32.9 

Log message:
provide an MI api for doing byteswapping loads and stores. some
archs have instrutions that can do this, and the rest that dont get
to use wrappers around the byteswap(3) api.

this provides MI backends for sparc64 and powerpc which get a big
benefit from this because byteswapping in registers is really hard
for them.

the intended use case is for reading and writing bits of dma memory
handed to and from hardware.

discussed with miod@ guenther@ deraadt@
ok miod@ kettenis@

Reply via email to