Page MenuHomeFreeBSD

Use a single 'ld' to read the jmpbuf magic values instead of 'la; ld'.
ClosedPublic

Authored by jhb on Dec 3 2019, 10:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 9, 11:09 PM
Unknown Object (File)
Fri, May 8, 8:53 PM
Unknown Object (File)
May 1 2026, 10:09 PM
Unknown Object (File)
Apr 19 2026, 10:34 AM
Unknown Object (File)
Apr 19 2026, 6:07 AM
Unknown Object (File)
Apr 19 2026, 1:14 AM
Unknown Object (File)
Apr 17 2026, 10:08 AM
Unknown Object (File)
Apr 12 2026, 11:05 AM
Subscribers

Details

Summary

This saves an instruction in each case.

Test Plan
  • tests in /usr/tests/lib/libc/setjmp pass

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 27923
Build 26092: arc lint + arc unit

Event Timeline

This is particularly beneficial as, for PIC code, which this will almost always be, la expands to auipc/ld to index the GOT, so we save a level of unnecessary indirection too. (This could have been lla instead to save the indirection but still take 2 instructions just to do the address calculation.)

This revision is now accepted and ready to land.Dec 4 2019, 2:40 PM