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
F168774840: D28424.id.diff
Sun, Aug 30, 2:27 AM
F168770251: D28424.diff
Sun, Aug 30, 1:51 AM
F168769321: D28424.id83197.diff
Sun, Aug 30, 1:40 AM
Unknown Object (File)
Thu, Aug 27, 6:53 PM
Unknown Object (File)
Wed, Aug 26, 7:00 AM
Unknown Object (File)
Tue, Aug 25, 11:18 PM
Unknown Object (File)
Tue, Aug 25, 10:33 PM
Unknown Object (File)
Mon, Aug 24, 6:16 AM

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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable