Page MenuHomeFreeBSD

csu: Avoid additional nops in the MIPS INIT_CALL_SEQ macro
ClosedPublic

Authored by arichardson on May 27 2020, 11:55 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 20, 7:30 PM
Unknown Object (File)
Sun, Sep 20, 7:05 PM
Unknown Object (File)
Sun, Sep 20, 4:54 PM
Unknown Object (File)
Sat, Sep 5, 4:50 AM
Unknown Object (File)
Fri, Sep 4, 5:25 PM
Unknown Object (File)
Thu, Sep 3, 7:03 AM
Unknown Object (File)
Thu, Sep 3, 4:34 AM
Unknown Object (File)
Thu, Sep 3, 3:31 AM
Subscribers

Details

Summary

Since we had a .set reorder, the nop after the "jal" was being placed after
the delay slot, resulting in two nops.
While changing this code also guard the .set noreorder with .set push/pop
and use $zero as the cpsetup save register since we don't need to save $gp.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable