HomeFreeBSD

arm64: Disable early printf if TSLOG

Description

arm64: Disable early printf if TSLOG

The warning message "ERROR loading DTB" (for systems without a device
tree blob) is printed extremely early in the boot process -- among
other things, before curthread or other pcpu data has been set up.
Unfortunately, printf is instrumented with TSLOG, which cannot run
quite this early.

Wrap the printf in #ifndef TSLOG; the situations where the printf
will be useful are not ones where TSLOG would be in use.

Details

Provenance
cpercivaAuthored on Jun 24 2021, 5:10 AM
Parents
rG0c188c06c627: arm64: replace pa_to_pvh() with page_to_pvh() in pmap_remove_l2()
Branches
Unknown
Tags
Unknown