<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/arch/sh/include, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/arch/sh/include?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/arch/sh/include?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-05-31T06:23:56Z</updated>
<entry>
<title>introduce "cpu_rnd_messybits" for use instead of nanotime in dev/rnd.c.</title>
<updated>2020-05-31T06:23:56Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-05-31T06:23:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=01802d2cc63d886227ab3b39e923ff13cf516166'/>
<id>urn:sha1:01802d2cc63d886227ab3b39e923ff13cf516166</id>
<content type='text'>
rnd.c uses nanotime to get access to some bits that change quickly
between events that it can mix into the entropy pool. it doesn't
use nanotime to get a monotonically increasing set or ordered and
accurate timestamps, it just wants something with bits that change.

there's been discussions for years about letting rnd use a clock
that's super fast to read, but not necessarily accurate, but it
wasn't until recently that i figured out it wasn't interested in
time at all, so things like keeping a fast clock coherent between
cpu cores or correct according to ntp is unecessary. this means we
can just let rnd read the cycle counters on cpus and things will
be fine.  cpus with cycle counters that vary in their speed and
arent kept consistent between cores may even be desirable in this
context.

so this is the first step in converting rnd.c to reading cycle
counter. it copies the nanotime backend to each arch, and they can
replace it with something MD as a second step later on.

djm@ suggested rnd_messybytes, but we landed on cpu_rnd_messybits.
thanks to visa for his eyes.
ok deraadt@ visa@
deraadt@ says he will help handle any MD fallout that occurs.
</content>
</entry>
<entry>
<title>Retire &lt;machine/varargs.h&gt;.</title>
<updated>2020-05-27T15:16:04Z</updated>
<author>
<name>visa</name>
<email>visa@openbsd.org</email>
</author>
<published>2020-05-27T15:16:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=9df0f941a91e9f67cc4e63514cb174cb2a5783fd'/>
<id>urn:sha1:9df0f941a91e9f67cc4e63514cb174cb2a5783fd</id>
<content type='text'>
Nothing uses the header anymore.

OK deraadt@ mpi@
</content>
</entry>
<entry>
<title>db_addr_t -&gt; vaddr_t</title>
<updated>2019-11-07T16:08:07Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2019-11-07T16:08:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=52de38dfad83669953521277a64804bf85027c8e'/>
<id>urn:sha1:52de38dfad83669953521277a64804bf85027c8e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Substitute boolean_t/TRUE/FALSE by int/1/0.</title>
<updated>2019-11-07T15:58:39Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2019-11-07T15:58:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=1d47df5535a8eecf36a407d475096db35dd70ad6'/>
<id>urn:sha1:1d47df5535a8eecf36a407d475096db35dd70ad6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add intr_{disable,restore}() for sh.</title>
<updated>2019-03-24T06:09:09Z</updated>
<author>
<name>visa</name>
<email>visa@openbsd.org</email>
</author>
<published>2019-03-24T06:09:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d271d0a8fa79e4163245fa802c9a3397ab9c9ad4'/>
<id>urn:sha1:d271d0a8fa79e4163245fa802c9a3397ab9c9ad4</id>
<content type='text'>
Reminded by deraadt@
</content>
</entry>
<entry>
<title>sprinle some casts to quiet compiler; ok millert</title>
<updated>2019-02-17T15:44:26Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-02-17T15:44:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e9a8150065b24ecdeb158fae3d19fa220ea67402'/>
<id>urn:sha1:e9a8150065b24ecdeb158fae3d19fa220ea67402</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add END() macro to set symbol size like every other arch</title>
<updated>2018-11-11T20:15:24Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2018-11-11T20:15:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=81a5d5c8702040f5e91cada2bc097ca40e7687ce'/>
<id>urn:sha1:81a5d5c8702040f5e91cada2bc097ca40e7687ce</id>
<content type='text'>
ok deraadt@
</content>
</entry>
<entry>
<title>Provide an MD 64-bit byteswapping function build on 32-bit swaps</title>
<updated>2018-10-05T15:13:55Z</updated>
<author>
<name>naddy</name>
<email>naddy@openbsd.org</email>
</author>
<published>2018-10-05T15:13:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8cba618e576f82477516a78a2b6621a1107a8a47'/>
<id>urn:sha1:8cba618e576f82477516a78a2b6621a1107a8a47</id>
<content type='text'>
as we do on arm and i386.  Copied from arm.

If there are no MD byteswapping functions, MI macros are used.
These are wrapped by static inline functions to prevent multiple
evaluation of their argument.  If there are MD functions, they are
used directly and therefore we must implicitly guarantee that they
are safe from multiple evaluation.  Defining an MD function to an
MI macro breaks this promise.

ok deraadt@
</content>
</entry>
<entry>
<title>Unify the MD byteswapping code as much as possible across architectures.</title>
<updated>2018-10-02T21:30:44Z</updated>
<author>
<name>naddy</name>
<email>naddy@openbsd.org</email>
</author>
<published>2018-10-02T21:30:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=30189709ef4dec80e8998d4b5ad83ca9d6053e24'/>
<id>urn:sha1:30189709ef4dec80e8998d4b5ad83ca9d6053e24</id>
<content type='text'>
Use inline functions instead of GNU C statement expressions, and
make them available to userland.  With clues from guenther@.

ok guenther@ kettenis@
</content>
</entry>
<entry>
<title>Unify and bump some of the NMBCLUSTERS defines. Some archs had it set to</title>
<updated>2018-09-14T13:58:20Z</updated>
<author>
<name>claudio</name>
<email>claudio@openbsd.org</email>
</author>
<published>2018-09-14T13:58:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=965127f80578c0400be53e4188190c636e97095a'/>
<id>urn:sha1:965127f80578c0400be53e4188190c636e97095a</id>
<content type='text'>
4MB which is far too low especially when the platform is able to run MP.
New limits are, amd64 = 256M; arm64, mips64, sparc64 = 64M; alpha, arm,
hppa, i386, powerpc = 32M; m88k, sh = 8M
Still rather conservative numbers but much better than before. At least
some hangs of arm64 build boxes was caused by this.
OK kettenis@, visa@
</content>
</entry>
</feed>
