Page MenuHomeFreeBSD

mips: Save off the BSP HWREna register to share with APs
AbandonedPublic

Authored by jhibbits on Dec 12 2024, 7:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 28, 1:49 PM
Unknown Object (File)
Mon, Nov 24, 11:32 PM
Unknown Object (File)
Sun, Nov 23, 4:11 AM
Unknown Object (File)
Nov 21 2025, 5:33 AM
Unknown Object (File)
Nov 6 2025, 1:35 PM
Unknown Object (File)
Nov 2 2025, 5:13 AM
Unknown Object (File)
Oct 16 2025, 6:22 PM
Unknown Object (File)
Sep 8 2025, 10:18 PM
Subscribers

Details

Reviewers
adrian
Group Reviewers
MIPS
Summary

Without sharing the HWREna register it may default to something
undesirable on APs, leading to either reserved instruction exceptions or
emulated access, as in the UserLocal register (TCB pointer).

Sponsored by: Juniper Networks, Inc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61123
Build 58007: arc lint + arc unit

Event Timeline

nice catch! please land on stable/13 and stable/12! tyvm!

This revision is now accepted and ready to land.Dec 12 2024, 7:04 PM
jrtc27 added inline comments.
sys/mips/mips/mp_machdep.c
63

This is already in cpuinfo

sys/mips/mips/mp_machdep.c
301

With #include <machine/cpuinfo.h>