Page MenuHomeFreeBSD

mips: fix early kernel panic when setting up interrupt counters
ClosedPublic

Authored by gonzo on Jan 30 2021, 6:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 25, 1:19 AM
Unknown Object (File)
Wed, May 15, 11:23 PM
Unknown Object (File)
Sat, May 4, 3:56 AM
Unknown Object (File)
Apr 26 2024, 9:02 AM
Unknown Object (File)
Apr 25 2024, 7:37 PM
Unknown Object (File)
Apr 25 2024, 9:35 AM
Unknown Object (File)
Apr 22 2024, 8:55 PM
Unknown Object (File)
Mar 7 2024, 6:42 PM

Details

Summary

Commit 248f0ca converted intrcnt and intrnames from u_long[]
and char[] to u_long* and char* respectively, but for non-INTRNG mips
these symbols were defined in .S file as a pre-allocated static arrays,
so the problem wasn't cought at compile time. Conversion from an array
to a pointer requires pointer initialization and it wasn't done
for MIPS, so whatever happenned to be in the begginning of intcnt[]
array was used as a pointer value.

Move intrcnt/intrnames to C code and allocate them dynamically
although with a fixed size at the moment.

Test Plan

Tested on QEMU/MALTA64

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36618
Build 33507: arc lint + arc unit