opnsense-src/sys/arm/arm
Zhenlei Huang 497f577f46 kernel: Make some compile time constant variables const
Those variables are not going to be changed at runtime. Make them const
to avoid potential overwriting. This will also help spotting accidental
global variables shadowing, since the variable's name such as `version`
is short and commonly used.

This change was inspired by reviewing khng's work D44760.

No functional change intended.

MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D45227

(cherry picked from commit 356be1348dac94ba0d2dc1f479bc1f8a2ebaa03a)
2024-09-20 18:04:02 +08:00
..
autoconf.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
bcopy_page.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
bcopyinout.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
bcopyinout_xscale.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
blockio.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
bus_space_asm_generic.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
bus_space_base.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
bus_space_generic.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
busdma_machdep.c busdma: fix page miscount for small segment sizes 2024-04-18 15:09:02 -03:00
copystr.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
cpu_asm-v6.S sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
cpufunc.c uma: Make the cache alignment mask unsigned 2023-11-16 10:07:16 -05:00
cpufunc_asm.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
cpufunc_asm_arm11x6.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
cpufunc_asm_armv7.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
cpufunc_asm_pj4b.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
cpuinfo.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
db_disasm.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
db_interface.c arm: pmap_extract() returns a PA not a boolean value 2024-04-08 10:50:26 -07:00
db_trace.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
debug_monitor.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
disassem.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
dump_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
elf_machdep.c sysentvec: add SV_SIGSYS flag 2023-10-09 06:24:31 +03:00
elf_note.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
exception.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
exec_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
fiq.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
fiq_subr.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
fusu.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gdb_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
genassym.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
generic_timer.c arm: Add a missing interrupt to the generic timer 2024-07-15 12:25:51 +00:00
gic.c arm: Fix a typo in a KASSERT message 2024-04-24 12:20:03 +02:00
gic.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gic_acpi.c intrng: Allow alternative IPI PICs to be registered and used 2024-09-07 00:59:02 +01:00
gic_common.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gic_fdt.c intrng: Allow alternative IPI PICs to be registered and used 2024-09-07 00:59:02 +01:00
gic_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
hypervisor-stub.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
identcpu-v6.c kernel: Make some compile time constant variables const 2024-09-20 18:04:02 +08:00
in_cksum_arm.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
in_cksum_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
locore-v6.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
locore.S sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
machdep_boot.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
machdep_intr.c intrng: Extract arm/arm64 IPI->PIC glue code 2024-09-07 00:58:28 +01:00
machdep_kdb.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
machdep_ptrace.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mem.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
minidump_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mp_machdep.c intrng: Extract arm/arm64 IPI->PIC glue code 2024-09-07 00:58:28 +01:00
mpcore_timer.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mpcore_timervar.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
nexus.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nexusvar.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
ofw_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
pl310.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
platform.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
platform_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
platform_pl310_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pmap-v6.c Adjust comments referencing vm_mem_init() 2024-06-06 11:23:01 -03:00
pmu.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
pmu.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pmu_acpi.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
pmu_fdt.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
ptrace_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sc_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
setcpsr.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
setstack.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sp804.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
stack_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
stdatomic.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
support.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
swtch-v6.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
swtch.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
sys_machdep.c ktrace: Record syscall violations with KTR_CAPFAIL 2024-05-11 18:57:44 -05:00
syscall.c syscalls: fix missing SIGSYS for several ENOSYS errors 2023-10-09 06:24:31 +03:00
trap-v6.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
uio_machdep.c uiomove: Add some assertions 2023-10-24 09:19:01 -04:00
undefined.c arm: Fix handling of undefined instructions in kernel mode 2023-12-17 21:07:47 -05:00
unwind.c arm unwind: Reject unaligned stack pointers 2023-10-11 08:10:31 -07:00
vfp.c arm: Disable the VFP during boot 2023-12-17 21:07:49 -05:00
vm_machdep.c thread: Add a return value to cpu_set_upcall() 2024-01-01 19:29:48 -05:00