Type inconsistency in tree.h

2019-03-23 Thread Greg Czerniak
A few functions in sys/sys/tree.h are marked void, but they have return statements that try to pass something back. I suspect these weren't detected by clang because of the __unused flag. The below patch removes the return statements. I compiled and ran this modification on my personal server

Re: armv7: VFPv4 support

2019-03-08 Thread Greg Czerniak
> That is incorrect. The Arm ARM states: > > "VFPv3 can be implemented with either thirty-two or sixteen doubleword > registers" > > "VFPv4 can be implemented with either thirty-two or sixteen doubleword > registers" > > The baseline for OpenBSD/armv7 assumes neon (which SAMA5D3 lacks) which >

armv7: VFPv4 support

2019-03-08 Thread Greg Czerniak
This patch adds support for floating point operations on the ARM Cortex-A5. The Cortex-A5 uses VFPv4, which differs from the (mostly) standard VFPv3 in that VFPv4 has 16 FPU registers instead of 32 on VFPv3. I've tested this on a BeagleBone Black (uses VFPv3) and the Atmel SAMA5D3 Xplained (uses

armv7: bus_space_map corner case fix

2019-03-07 Thread Greg Czerniak
The bus_space_map() function on armv7 fails in the corner case where you want to allocate the last memory page. Consider a case where bpa = 0xfc00 and size=0x120. startpa becomes 0xf000 while endpa becomes startpa + PAGE_SIZE which is 0x. The following for-loop is currently condit