Page MenuHomeFreeBSD

kboot: Save the upper limit of the call stack.
ClosedPublic

Authored by imp on Apr 16 2025, 7:23 PM.
Tags
None
Referenced Files
F171233642: D49858.id153745.diff
Wed, Sep 9, 5:28 PM
Unknown Object (File)
Wed, Sep 2, 2:25 AM
Unknown Object (File)
Fri, Aug 28, 2:40 PM
Unknown Object (File)
Fri, Aug 28, 2:28 PM
Unknown Object (File)
Fri, Aug 28, 1:12 PM
Unknown Object (File)
Sat, Aug 22, 2:34 AM
Unknown Object (File)
Fri, Aug 14, 2:28 AM
Unknown Object (File)
Wed, Aug 12, 11:59 PM
Subscribers

Details

Summary

The location of argc argument is a fine limit for the extent of the
stack traceback. We could save the location of return address for the
call to _start_c, but we'd have to move that into MD assembler. While
not hard, it wouldn't improve the traces we can get. And the math to
find it is architecture dependent (though the same for both arm64 and
amd64).

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63543
Build 60427: arc lint + arc unit