Page MenuHomeFreeBSD

riscv: Use global mimpid in identify_cpu()
ClosedPublic

Authored by nick on Aug 17 2020, 9:20 PM.
Tags
Referenced Files
Unknown Object (File)
Tue, Jun 9, 11:01 AM
Unknown Object (File)
Tue, Jun 9, 5:20 AM
Unknown Object (File)
Mon, Jun 8, 11:46 PM
Unknown Object (File)
Sun, Jun 7, 9:30 PM
Unknown Object (File)
Sat, Jun 6, 8:48 AM
Unknown Object (File)
Tue, Jun 2, 4:49 PM
Unknown Object (File)
Sat, May 30, 9:52 PM
Unknown Object (File)
Sat, May 30, 7:05 PM
Subscribers

Details

Summary

sbi_init() sets mimpid, we can use that value.

Sponsored by: Axiado

Test Plan

I've tested this on internal hardware and Qemu (with some Qemu hacks as RISCV Qemu returns 0 by default)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

nick requested review of this revision.Aug 17 2020, 9:20 PM

Looks good to me.

Would be nice if sbi_init() could also give us misa. ;-)

This revision is now accepted and ready to land.Aug 18 2020, 1:49 AM

Approved by: philip, kp (mentors)

Go ahead and commit this.

This revision was automatically updated to reflect the committed changes.