HomeFreeBSD

kboot: Add host_exit and use it to implement exit()

Description

kboot: Add host_exit and use it to implement exit()

Clients of libsa are expected to implement exit(). The current exit just
loops forever. It is better to really exit: when running as init that
will reboot the system. When not running as init, other programs can
recover (not that we support running as init, but when we do in the
future, this is still the rigtht thing).

Sponsored by: Netflix

Details

Provenance
impAuthored on Jul 28 2022, 9:18 PM
Parents
rG75cbdbc9832e: kboot: aarch64 support
Branches
Unknown
Tags
Unknown