HomeFreeBSD

riscv: Call identify_cpu() earlier for CPU 0

Description

riscv: Call identify_cpu() earlier for CPU 0

It is advantageous to have knowledge of ISA features as early as
possible. For example, the presence of newer virtual memory extensions
may be useful to pmap_bootstrap().

To achieve this, split out the printf() parts of identify_cpu() into a
separate function, printcpuinfo(). This latter function will be called
later in boot after the console has been initialized.

Reviewed by: markj
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39810

(cherry picked from commit b0d45b023e8c9af50312c7b56c4be9c39657afcb)

Details

Provenance
mhorneAuthored on May 22 2023, 11:50 PM
Reviewer
markj
Differential Revision
D39810: riscv: rework CPU identification [2/6]
Parents
rGbe12b4f1fbf6: riscv: Rework CPU identification (first part)
Branches
Unknown
Tags
Unknown