]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use a single 'ld' to read the jmpbuf magic values instead of 'la; ld'.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 4 Dec 2019 20:50:49 +0000 (20:50 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 4 Dec 2019 20:50:49 +0000 (20:50 +0000)
commitc0acb84da7794df4d2eb004980b33cca10f46cd4
treea878009e6a1656fb9aee6d865c4164ab6e7d0321
parent3487d66820b758b67aaa167e88a2440ee0d36d04
Use a single 'ld' to read the jmpbuf magic values instead of 'la; ld'.

This saves an instruction in each case as well as an extra memory
indirection via the GOT for PIC code.

Reviewed by: br, James Clarke
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D22656
lib/libc/riscv/gen/_setjmp.S
lib/libc/riscv/gen/setjmp.S