HomeFreeBSD

kboot: Save the upper limit of the call stack.

Description

kboot: Save the upper limit of the call stack.

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
Reviewed by: kevans, andrew, jhibbits
Differential Revision: https://reviews.freebsd.org/D49858

Details

Provenance
impAuthored on Apr 17 2025, 4:03 AM
Reviewer
kevans
Differential Revision
D49858: kboot: Save the upper limit of the call stack.
Parents
rG5fb044c88574: kboot: format nit
Branches
Unknown
Tags
Unknown