<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/sys/dev/gpio, branch master</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/sys/dev/gpio?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/sys/dev/gpio?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-06-24T22:03:40Z</updated>
<entry>
<title>kernel: use gettime(9)/getuptime(9) in lieu of time_second(9)/time_uptime(9)</title>
<updated>2020-06-24T22:03:40Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2020-06-24T22:03:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3209772dfcc3950dd5df01bc44eebf75e637511e'/>
<id>urn:sha1:3209772dfcc3950dd5df01bc44eebf75e637511e</id>
<content type='text'>
time_second(9) and time_uptime(9) are widely used in the kernel to
quickly get the system UTC or system uptime as a time_t.  However,
time_t is 64-bit everywhere, so it is not generally safe to use them
on 32-bit platforms: you have a split-read problem if your hardware
cannot perform atomic 64-bit reads.

This patch replaces time_second(9) with gettime(9), a safer successor
interface, throughout the kernel.  Similarly, time_uptime(9) is replaced
with getuptime(9).

There is a performance cost on 32-bit platforms in exchange for
eliminating the split-read problem: instead of two register reads you
now have a lockless read loop to pull the values from the timehands.
This is really not *too* bad in the grand scheme of things, but
compared to what we were doing before it is several times slower.

There is no performance cost on 64-bit (__LP64__) platforms.

With input from visa@, dlg@, and tedu@.

Several bugs squashed by visa@.

ok kettenis@
</content>
</entry>
<entry>
<title>gpiodcf(4): unbreak compilation</title>
<updated>2020-04-15T04:41:39Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2020-04-15T04:41:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2f640e264e4d1aa6d14db632626781d903e3571f'/>
<id>urn:sha1:2f640e264e4d1aa6d14db632626781d903e3571f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cleanup unused headers generated by config</title>
<updated>2020-01-24T05:14:51Z</updated>
<author>
<name>jsg</name>
<email>jsg@openbsd.org</email>
</author>
<published>2020-01-24T05:14:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=854a1b2d65aecb1ec4da35222be452e85e91f3b7'/>
<id>urn:sha1:854a1b2d65aecb1ec4da35222be452e85e91f3b7</id>
<content type='text'>
ok tedu@ krw@ deraadt@
</content>
</entry>
<entry>
<title>gpiodcf(4): tvtohz(9)+timeout_add(9) -&gt; timeout_add_msec(9)</title>
<updated>2019-08-10T18:18:27Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2019-08-10T18:18:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=94536692933b1b9cb630bf5eab0c3929cf253348'/>
<id>urn:sha1:94536692933b1b9cb630bf5eab0c3929cf253348</id>
<content type='text'>
"looks fine" kettenis@, ok deraadt@
</content>
</entry>
<entry>
<title>Delete unnecessary &lt;sys/file.h&gt; includes</title>
<updated>2017-12-30T20:46:59Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2017-12-30T20:46:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=98edb555c60b4518edc9c87d00ef86c5a6af2342'/>
<id>urn:sha1:98edb555c60b4518edc9c87d00ef86c5a6af2342</id>
<content type='text'>
ok millert@ krw@
</content>
</entry>
<entry>
<title>Test for device_lookup() returning NULL in gpioioctl() and gpioclose().</title>
<updated>2017-08-18T12:15:35Z</updated>
<author>
<name>jsg</name>
<email>jsg@openbsd.org</email>
</author>
<published>2017-08-18T12:15:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3adc742d35c77509d92a31bf527e76358c41b591'/>
<id>urn:sha1:3adc742d35c77509d92a31bf527e76358c41b591</id>
<content type='text'>
Coverity CIDs 1453046, 1453184.
</content>
</entry>
<entry>
<title>simple sizes for free()</title>
<updated>2015-08-27T05:48:40Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2015-08-27T05:48:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fb9e5ef0220d94ef74bc3fd75c156df130fe51ed'/>
<id>urn:sha1:fb9e5ef0220d94ef74bc3fd75c156df130fe51ed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>The Swiss Federal Government decided to shut down HBG at the end of 2011.</title>
<updated>2015-06-07T20:11:52Z</updated>
<author>
<name>claudio</name>
<email>claudio@openbsd.org</email>
</author>
<published>2015-06-07T20:11:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=947eb24463d7f1e2ea1ab359cd0e71030e1f0b4f'/>
<id>urn:sha1:947eb24463d7f1e2ea1ab359cd0e71030e1f0b4f</id>
<content type='text'>
On 6 September 2012 at 12:02:00 UTC both antenna towers were demolished by
controlled explosives. So this is not coming back and we can tedu the
support for HBG form the DCF77 drivers.
Remided by mbalmer
</content>
</entry>
<entry>
<title>add a size argument to free. will be used soon, but for now default to 0.</title>
<updated>2014-07-12T18:48:17Z</updated>
<author>
<name>tedu</name>
<email>tedu@openbsd.org</email>
</author>
<published>2014-07-12T18:48:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=aa3cabd09e6b42375ee0b2752abfd9b6628d36bd'/>
<id>urn:sha1:aa3cabd09e6b42375ee0b2752abfd9b6628d36bd</id>
<content type='text'>
after discussions with beck deraadt kettenis.
</content>
</entry>
<entry>
<title>In {gpio,gdium}iic_bb_read_bits(), report the state of the SCL bit in addition</title>
<updated>2013-04-19T23:44:34Z</updated>
<author>
<name>miod</name>
<email>miod@openbsd.org</email>
</author>
<published>2013-04-19T23:44:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e685b9a2dd5a6ad5620e9b9e398a69294f31883b'/>
<id>urn:sha1:e685b9a2dd5a6ad5620e9b9e398a69294f31883b</id>
<content type='text'>
to the state of the SDA bit; the MI i2c code is about to depend upon this.
</content>
</entry>
</feed>
