summaryrefslogtreecommitdiffstats
path: root/sys/arch/arm/include/endian.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Unify the MD byteswapping code as much as possible across architectures.naddy2018-10-021-25/+20
| | | | | | | Use inline functions instead of GNU C statement expressions, and make them available to userland. With clues from guenther@. ok guenther@ kettenis@
* add a license for the code in here, all of which i seem to have written.dlg2017-02-061-1/+17
| | | | this has been pointed out to me by a couple of people now.
* there is no longer a need to ifdef __armv7__ armv6 rev instructionsjsg2017-01-061-3/+1
|
* armv6 introduced opcodes for reversing words in registers. we candlg2015-01-111-1/+46
| | | | | | | | | | use these on armv7 as a backend for byteswapping things that endian.h provide. i dunno if its faster, but it makes smaller code. saves 30k on GENERIC-OMAP. ok jsing@ bmercer@ jsg@
* Tackle the endian.h mess. Make it so that:guenther2014-07-121-2/+4
| | | | | | | | | | | | | | | | | | * you can #include <sys/endian.h> instead of <machine/endian.h>, and ditto <endian.h> (fixes code that pulls in <sys/endian.h> first) * those will always export the symbols that POSIX specified for <endian.h>, including the new {be,le}{16,32,64}toh() set. c.f. http://austingroupbugs.net/view.php?id=162 if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h> currently exports (ntohs, NTOHS, dlg's bemtoh*, etc) * when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and <arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER and betoh* ok deraadt@
* remove support for big endian; ok drahnderaadt2011-11-081-5/+1
|
* Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.pirofti2011-03-231-4/+4
| | | | Discussed and okay drahn@. Okay deraadt@.
* Use _MACHINE_ENDIAN_H_ for this is The Right Thing To Do.pirofti2011-03-111-1/+6
| | | | Okay guenther@, millert@.
* First step in include files overhaul. Use __FOO_VISIBLE (as definedmillert2005-12-131-3/+3
| | | | | in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
* ARM is strict alignment (practically) so let the kernel know this. ok miod@drahn2005-01-201-1/+2
|
* Arm port, NetBSD codebase stripped down, 32bit only support.drahn2004-02-011-0/+8