opnsense-src/sys/mips/mips
Oleksandr Tymoshenko 10625515ad MFC: 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

(cherry picked from commit e0a0a3efcb)

mips: fix NLM platforms breakage caused by e0a0a3ef

NetLogic platforms have their own implementation of cpu_init_interrupts.
Apply the same logic to it as to intr_machdep.c.

PR:	253051

(cherry picked from commit d6f9c5a6d2)
2021-02-02 21:06:37 -08:00
..
autoconf.c
bcopy.S
bus_space_generic.c
busdma_machdep.c Refine the busdma template interface. Provide tools for filling in fields 2020-09-14 05:58:12 +00:00
cache.c
cache_mipsNN.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
cpu.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
db_disasm.c
db_interface.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
db_trace.c Various fixes for the MIPS DDB stack unwinder. 2020-12-04 20:14:25 +00:00
dump_machdep.c
elf_machdep.c random(4) FenestrasX: Push root seed version to arc4random(3) 2020-10-10 21:52:00 +00:00
elf_trampoline.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
exception.S MFC: mips: fix early kernel panic when setting up interrupt counters 2021-02-02 21:06:37 -08:00
fp.S
freebsd32_machdep.c random(4) FenestrasX: Push root seed version to arc4random(3) 2020-10-10 21:52:00 +00:00
gdb_machdep.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
genassym.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
in_cksum.c
inckern.S
intr_machdep.c MFC: mips: fix early kernel panic when setting up interrupt counters 2021-02-02 21:06:37 -08:00
libkern_machdep.c
locore.S
machdep.c [PowerPC] More relocation fixes 2020-06-21 03:39:26 +00:00
mem.c Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. 2020-09-02 18:12:47 +00:00
minidump_machdep.c Always use 64-bit physical addresses for dump_avail[] in minidumps 2020-12-03 17:12:31 +00:00
mips_pic.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
mp_machdep.c
mpboot.S
nexus.c make maximum interrupt number tunable on ARM, ARM64, MIPS, and RISC-V 2021-01-18 16:36:39 -08:00
octeon_cop2.c Fix UMA alignment for COP2 context structure. 2020-11-04 23:29:27 +00:00
octeon_cop2_swtch.S
ofw_machdep.c
pm_machdep.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
pmap.c Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
ptrace_machdep.c Regularize my copyright notice 2019-12-04 16:56:11 +00:00
sc_machdep.c sc(4) md bits: stop setting sc->kbd entirely 2019-12-30 02:07:55 +00:00
stack_machdep.c Make stack_save*() more robust on MIPS. 2020-12-01 17:17:22 +00:00
stdatomic.c
support.S mips: Fix sub-word atomics implementation 2020-12-14 00:47:59 +00:00
swtch.S Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
sys_machdep.c Various fixes to TLS for MIPS. 2020-06-12 21:21:18 +00:00
tick.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00
tlb.c
trap.c Handle KDB_WHY_TRAP return on arm and mips 2021-01-02 19:07:04 -04:00
uio_machdep.c
uma_machdep.c Tidy up the #includes. Recent changes, such as the introduction of 2020-11-02 19:20:06 +00:00
vm_machdep.c mips: clean up empty lines in .c and .h files 2020-09-01 21:21:19 +00:00