freebsd-dev/sys/mips
Oleksandr Tymoshenko e0a0a3efcb mips: fix early kernel panic when setting up interrupt counters
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.

Reviewed by:	emaste
PR:		253051
Differential Revision:	https://reviews.freebsd.org/D28424
MFC after:	1 day
2021-01-31 13:44:45 -08:00
..
atheros Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
beri Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
broadcom Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
cavium Fix octeon_pmc post-r334827 2020-11-18 17:37:01 +00:00
conf hid: Import functions and constants required by new subsystem 2021-01-08 02:18:42 +03:00
include Remove 'struct trapframe' pointer from mips64's 'struct syscall_args'. 2020-11-06 19:19:51 +00:00
ingenic mips: Fix build by using the correct device-tree include path 2021-01-16 11:34:10 +01:00
malta mips: fix build w/ TICK_USE_MALTA_RTC defined 2020-12-25 19:47:45 +01:00
mediatek mips: Fix build by using the correct device-tree include path 2021-01-16 11:34:10 +01:00
mips mips: fix early kernel panic when setting up interrupt counters 2021-01-31 13:44:45 -08:00
nlm Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00