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
Unknown Object (File)
Mon, Nov 24, 8:59 PM
Unknown Object (File)
Mon, Nov 24, 8:15 PM
Unknown Object (File)
Mon, Nov 24, 8:15 PM
Unknown Object (File)
Mon, Nov 24, 8:14 PM
Unknown Object (File)
Wed, Nov 19, 10:17 AM
Unknown Object (File)
Sat, Nov 15, 6:24 AM
Unknown Object (File)
Thu, Nov 13, 8:13 PM
Unknown Object (File)
Thu, Nov 13, 12:33 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 Not Applicable
Unit
Tests Not Applicable