Messages in this thread | | | Subject | Re: [: [git pull] headers_check fixes] | From | Harvey Harrison <> | Date | Wed, 28 Jan 2009 11:22:12 -0800 |
| |
On Wed, 2009-01-28 at 09:48 -0800, H. Peter Anvin wrote: > Arnd Bergmann wrote: > > > > For the specific x86 swab code, that would certainly be the simplest > > way, user space should not be using those inline assemblies either > > way. > > > > I think the more interesting question is whether we want to export > > *any* inline helpers that are not part of the ABI to user space. > > We already killed most of them (spinlocks, atomics, ...) and what > > remains is basically just the byteorder code. All that is required > > for the ABI is the information whether the system is big- or > > little-endian, but not all the rest. > > > > In general, no. The byteswap API is a legacy exception. >
But now that swab.h has been separated out, we could just stop exporting the asm/swab.h bits while still providing a generic C-based implementation to userspace.
Harvey
| |