<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libc/arch, branch master</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/arch?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/arch?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2021-02-03T13:00:39Z</updated>
<entry>
<title>Adding a hard-trap instruction after the __threxit syscall instruction</title>
<updated>2021-02-03T13:00:39Z</updated>
<author>
<name>kurt</name>
<email>kurt@openbsd.org</email>
</author>
<published>2021-02-03T13:00:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=05b039f4dc11d7662dcf95ccc48b62a2745a5111'/>
<id>urn:sha1:05b039f4dc11d7662dcf95ccc48b62a2745a5111</id>
<content type='text'>
broke pthreads on hppa. Reverting. Ok deraadt@
</content>
</entry>
<entry>
<title>Geode CPU does not support SSE, so MXCSR does not exists there.  As</title>
<updated>2020-12-13T21:21:32Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2020-12-13T21:21:32Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4856180f9a2b3d6bc7e69d3b31e067e957f4b8b5'/>
<id>urn:sha1:4856180f9a2b3d6bc7e69d3b31e067e957f4b8b5</id>
<content type='text'>
our i386 compiler does not generate SSE instructions by default,
it is not strictly necessary to save MXCSR content between setjmp(3)
and longjmp(3).  We do not want to end supporting such old processors
now.  Remove the stmxcsr and ldmxcsr instructions from libc.
reported by Johan Huldtgren; OK jsg@ kettenis@
</content>
</entry>
<entry>
<title>On i386 setjmp(3) should store the FPU state and longjmp(3) restore</title>
<updated>2020-12-06T18:13:15Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2020-12-06T18:13:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6559b00c5fb7177ff349319a849dc43f01440ccd'/>
<id>urn:sha1:6559b00c5fb7177ff349319a849dc43f01440ccd</id>
<content type='text'>
it.  There is enough space in jmp_buf to save MXCSR and CW register.
Idea taken from amd64.  This fixes regress/lib/libc/setjmp-fpu .
OK kettenis@
</content>
</entry>
<entry>
<title>Introduce constants to access the setjmp(3) jmp_buf fields from</title>
<updated>2020-12-06T15:31:30Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2020-12-06T15:31:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3a26117014390486743ddc86d9fd1b9bca79fbd6'/>
<id>urn:sha1:3a26117014390486743ddc86d9fd1b9bca79fbd6</id>
<content type='text'>
i386 libc.  The assembler code is more readable than with magic
numbers.  This brings i386 in line with amd64.  No change in object
file.
OK kettenis@
</content>
</entry>
<entry>
<title>Add retguard to macppc kernel locore.S, ofwreal.S, setjmp.S</title>
<updated>2020-11-28T19:49:30Z</updated>
<author>
<name>gkoehler</name>
<email>gkoehler@openbsd.org</email>
</author>
<published>2020-11-28T19:49:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=15572fcf8c6bfa0588565cd23f393a5a1499ea57'/>
<id>urn:sha1:15572fcf8c6bfa0588565cd23f393a5a1499ea57</id>
<content type='text'>
This changes RETGUARD_SETUP(ffs) to RETGUARD_SETUP(ffs, %r11, %r12)
and RETGUARD_CHECK(ffs) to RETGUARD_CHECK(ffs, %r11, %r12)
to show that r11 and r12 are in use between setup and check, and to
pick registers other than r11 and r12 in some kernel functions.

ok mortimer@ deraadt@
</content>
</entry>
<entry>
<title>Actually m88k assembler can not handle 'nop' mnemonic, use a macro instead.</title>
<updated>2020-11-07T02:52:08Z</updated>
<author>
<name>aoyama</name>
<email>aoyama@openbsd.org</email>
</author>
<published>2020-11-07T02:52:08Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ea0d283d96f7da374e9a3a920be989de8054b655'/>
<id>urn:sha1:ea0d283d96f7da374e9a3a920be989de8054b655</id>
<content type='text'>
ok deraadt@
</content>
</entry>
<entry>
<title>Retguard asm macros for powerpc libc, ld.so</title>
<updated>2020-10-26T22:07:05Z</updated>
<author>
<name>gkoehler</name>
<email>gkoehler@openbsd.org</email>
</author>
<published>2020-10-26T22:07:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d2c5a4743fb945f45b034a3a830a96f7e1bc695d'/>
<id>urn:sha1:d2c5a4743fb945f45b034a3a830a96f7e1bc695d</id>
<content type='text'>
Add retguard to some, but not all, asm functions in libc.  Edit SYS.h
in libc to remove the PREFIX macros and add SYSENTRY (more like
aarch64 and powerpc64), so we can insert RETGUARD_SETUP after
SYSENTRY.  Some .S files in this commit don't get retguard, but do
stop using the old prefix macros.

Tested by deraadt@, who put this diff in a macppc snap.
</content>
</entry>
<entry>
<title>Save and restore the MXCSR register and the FPU control word such that</title>
<updated>2020-10-21T17:22:59Z</updated>
<author>
<name>kettenis</name>
<email>kettenis@openbsd.org</email>
</author>
<published>2020-10-21T17:22:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e48de7d1d806622671b6228964df45ff72f58824'/>
<id>urn:sha1:e48de7d1d806622671b6228964df45ff72f58824</id>
<content type='text'>
floating-point control modes are properly restored by longjmp(3).

ok guenther@
</content>
</entry>
<entry>
<title>Use a trap instruction that unconditionally terminates the process.</title>
<updated>2020-10-20T15:26:59Z</updated>
<author>
<name>visa</name>
<email>visa@openbsd.org</email>
</author>
<published>2020-10-20T15:26:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=80466dde51009dbd49580caccfb3a8784eaac483'/>
<id>urn:sha1:80466dde51009dbd49580caccfb3a8784eaac483</id>
<content type='text'>
OK deraadt@
</content>
</entry>
<entry>
<title>Retguard sigsetjmp on powerpc64.</title>
<updated>2020-10-19T23:24:17Z</updated>
<author>
<name>mortimer</name>
<email>mortimer@openbsd.org</email>
</author>
<published>2020-10-19T23:24:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=911403b16a487d378fc1cc17d73d345a2636c46b'/>
<id>urn:sha1:911403b16a487d378fc1cc17d73d345a2636c46b</id>
<content type='text'>
ok deraadt@
</content>
</entry>
</feed>
