opnsense-src/sys/arm/arm
Konstantin Belousov 206f09eb46 Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as
const.  On x86, even after the machine context is supposedly read into
the struct ucontext, lazy FPU state save code might only mark the FPU
data as hardware-owned.  Later, set_fpcontext() needs to fetch the
state from hardware, modifying the *mcp.

The set_mcontext(9) is called from sigreturn(2) and setcontext(2)
implementations and old create_thread(2) interface, which throw the
*mcp out after the set_mcontext() call.

Reported by:	dim
Discussed with:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2015-01-31 21:43:46 +00:00
..
autoconf.c Create nexus in configure_first() instead of in configure(). This 2005-05-29 23:44:22 +00:00
bcopy_page.S Add an END macro to ARM. This is mostly used to tell gas where the bounds 2013-03-16 02:48:49 +00:00
bcopyinout.S Fix alignment directives in arm asm code after clang 3.5 import. 2015-01-02 23:46:26 +00:00
bcopyinout_xscale.S Fix alignment directives in arm asm code after clang 3.5 import. 2015-01-02 23:46:26 +00:00
blockio.S Switch to unified syntax so these can be built with clang 3.5. 2014-12-02 18:37:04 +00:00
bootconfig.c Final whitespace trim. 2012-06-13 04:59:55 +00:00
bus_space_asm_generic.S For some reason, all the arm bus_space functions that work with uint16 2015-01-21 02:56:13 +00:00
bus_space_base.c Move the __aligned() declaration to where it will actually do something. 2015-01-21 21:31:26 +00:00
bus_space_generic.c Move bs_unimplemented() to bus_space_generic.c so it can be shared. 2015-01-21 03:24:18 +00:00
busdma_machdep-v6.c When doing a PREREAD sync of an mbuf-type dma buffer, do a writeback of 2014-11-22 03:03:11 +00:00
busdma_machdep.c Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
copystr.S Fix alignment directives in arm asm code after clang 3.5 import. 2015-01-02 23:46:26 +00:00
cpu_asm-v6.S Fix a paste-o. 2014-12-31 02:33:12 +00:00
cpufunc.c Correct cpu type, it was rather Cortex A12 R0. 2015-01-14 01:23:50 +00:00
cpufunc_asm.S Fix alignment directives in arm asm code after clang 3.5 import. 2015-01-02 23:46:26 +00:00
cpufunc_asm_arm9.S Fix alignment directives in arm asm code after clang 3.5 import. 2015-01-02 23:46:26 +00:00
cpufunc_asm_arm10.S Fix alignment directives in arm asm code after clang 3.5 import. 2015-01-02 23:46:26 +00:00
cpufunc_asm_arm11.S Remove code under PMAP_CACHE_VIVT that is not compiled anymore. 2014-04-05 18:13:28 +00:00
cpufunc_asm_arm11x6.S Switch to an armv6k cpu, without this clang 3.5 complains "bx lr" is 2014-12-05 19:19:17 +00:00
cpufunc_asm_armv4.S Add a new cache maintenance function, idcache_inv_all, to the table, and 2014-02-24 01:41:58 +00:00
cpufunc_asm_armv5.S Fix alignment directives in arm asm code after clang 3.5 import. 2015-01-02 23:46:26 +00:00
cpufunc_asm_armv5_ec.S Use the APSR_nzcv format of mrc. The clang integrated assembler doesn't 2014-12-02 18:35:34 +00:00
cpufunc_asm_armv6.S Fix unwind-info errors in our hand-written arm assembler code. 2014-08-01 18:24:44 +00:00
cpufunc_asm_armv7.S Add machine/sysreg.h to simplify accessing the system control coprocessor 2014-09-27 09:57:34 +00:00
cpufunc_asm_fa526.S Add an END macro to ARM. This is mostly used to tell gas where the bounds 2013-03-16 02:48:49 +00:00
cpufunc_asm_pj4b.S Delete obsolete and unused PJ4B CPU functions 2014-05-25 19:19:41 +00:00
cpufunc_asm_sheeva.S Use the APSR_nzcv format of mrc. The clang integrated assembler doesn't 2014-12-02 18:35:34 +00:00
cpufunc_asm_xscale.S Unify interrupts bit definition and usage. While here remove PSR_C_bit. 2014-09-10 15:25:15 +00:00
cpufunc_asm_xscale_c3.S Remove extra labels, ENTRY_NP already provides them. 2014-11-30 12:20:24 +00:00
cpuinfo.c Add new code to read and parse cpu identification data using the new CPUID 2014-12-28 18:12:56 +00:00
db_disasm.c Final whitespace trim. 2012-06-13 04:59:55 +00:00
db_interface.c Final whitespace trim. 2012-06-13 04:59:55 +00:00
db_trace.c Cleanup up ARM *frame structures... 2014-12-24 18:54:31 +00:00
devmap.c Add a function to print the contents of the static device mapping table, 2014-01-09 18:51:57 +00:00
disassem.c From https://sourceware.org/ml/newlib/2014/msg00113.html 2014-08-14 04:20:13 +00:00
dump_machdep.c Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
elf_machdep.c /usr/libexec/ld.so.1 never was a thing on FreeBSD/arm. This was the 2014-08-18 02:45:06 +00:00
elf_note.S Add an elf not so kgdb detects the kernel as a FreeBSD elf file. The 2014-10-18 13:38:04 +00:00
elf_trampoline.c Remove all traces of support for ARM chips prior to the arm9 series. We 2014-03-09 21:12:31 +00:00
exception.S Fix alignment directives in arm asm code after clang 3.5 import. 2015-01-02 23:46:26 +00:00
fiq.c Unify interrupts bit definition and usage. While here remove PSR_C_bit. 2014-09-10 15:25:15 +00:00
fiq_subr.S Move the exception vector table (so-called "page0" data) into exception.S 2014-03-10 19:36:26 +00:00
fusu.S Fix alignment directives in arm asm code after clang 3.5 import. 2015-01-02 23:46:26 +00:00
gdb_machdep.c Cleanup up ARM *frame structures... 2014-12-24 18:54:31 +00:00
genassym.c Export MAXCPU to the assembler code, needing by upcoming changes to locore.S. 2014-12-30 02:58:34 +00:00
generic_timer.c Some device tree configurations place the generic timer under the root 2014-11-28 11:49:26 +00:00
gic.c Rename gic_init_secondary to arm_init_secondary_ic to help with the merge 2015-01-11 16:46:43 +00:00
identcpu.c Correct cpu type, it was rather Cortex A12 R0. 2015-01-14 01:23:50 +00:00
in_cksum.c Final whitespace trim. 2012-06-13 04:59:55 +00:00
in_cksum_arm.S Switch to unified syntax so these can be built with clang 3.5. 2014-12-02 18:37:04 +00:00
inckern.S MFp4: 2006-06-12 22:58:50 +00:00
intr.c Add ARMv7 performance monitoring counters. 2015-01-28 16:08:07 +00:00
locore-v4.S Remove the SMP code from locore-v4. These will never use the SMP code as 2015-01-20 11:32:48 +00:00
locore-v6.S Minor cleanups, comment changes. No need to load 3 values when setting up 2015-01-17 18:40:46 +00:00
locore.S Add a new locore.S that #includes the right (v4 or v6) implementation. 2014-12-30 03:19:46 +00:00
machdep.c Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as 2015-01-31 21:43:46 +00:00
mem.c Ensure that _tmppt KVA is used exclusively by providing exclusive sx 2015-01-26 10:11:55 +00:00
minidump_machdep.c Pass up the error status of minidumpsys() to its callers. 2014-10-08 20:25:21 +00:00
mp_machdep.c Rename locore.S to locore-v4.S and add a new locore-v6.S for starting up 2014-12-30 03:17:53 +00:00
mpcore_timer.c Make the ARM MPCore Timer driver work with published standard FDT bindings. 2014-09-20 14:49:21 +00:00
mpcore_timervar.h Trivial changes/forced-commit to document previous change r264050 whose 2014-04-02 18:49:50 +00:00
nexus.c Pull out the fdt mapping code into intr.c. The arm_intrng branch also 2014-12-21 21:27:12 +00:00
physmem.c Add the Maxmem global and set it to the highest physical page number plus 1. 2015-01-22 17:42:30 +00:00
pl190.c Attach arm generic interrupt and timer drivers in the middle of 2014-08-05 18:51:51 +00:00
pl310.c Accept the documented FDT compatible string for the PL310 cache controller 2014-10-24 15:44:29 +00:00
platform.c Pull in r267961 and r267973 again. Fix for issues reported will follow. 2014-06-28 03:56:17 +00:00
platform_if.m Add the start of the ARM platform code. This is based on the PowerPC 2014-05-17 11:27:36 +00:00
pmap-v6.c By the time that pmap_init() runs, vm_phys_segs[] has been initialized. Obtaining 2014-10-26 17:56:47 +00:00
pmap.c Rename pmap_kenter_temp to pmap_kenter_temporary to be consistent with the 2014-09-11 10:53:57 +00:00
pmu.c Add a generic way for hooking PMC interrupt. 2015-01-26 10:31:17 +00:00
sc_machdep.c Piggyback MIPS changes and add ARM syscons support for devices with 2012-08-25 23:59:31 +00:00
setcpsr.S Update all arm code that manipulates the PSR registers to use modern syntax. 2014-02-02 00:48:15 +00:00
setstack.s Fix unwind-info errors in our hand-written arm assembler code. 2014-08-01 18:24:44 +00:00
stack_machdep.c Cleanup up ARM *frame structures... 2014-12-24 18:54:31 +00:00
stdatomic.c Use the unified syntax when generating assembly for clang. The clang 3.5 2014-12-06 11:59:35 +00:00
support.S Place the literal pool after a RET otherwise clang 3.5 tries to put it too 2014-12-05 19:14:05 +00:00
swtch.S Cleanup up ARM *frame structures... 2014-12-24 18:54:31 +00:00
sys_machdep.c Update kernel inclusions of capability.h to use capsicum.h instead; some 2014-03-16 10:55:57 +00:00
syscall.c Include sys/kernel.h to pick up the definition of hz. subr_syscall.c uses 2014-12-09 10:21:31 +00:00
trap-v6.c Add last_fault_code used in pmap-v6.c if kernel is compiled with "option DEBUG" 2015-01-22 03:33:51 +00:00
trap.c For data and instruction prefetch aborts, call the same handler in the C 2014-12-25 17:06:58 +00:00
uio_machdep.c Delete stray clause 3 (Advertising clause) and renumber while i'm 2014-03-11 23:41:35 +00:00
undefined.c Unify interrupts bit definition and usage. While here remove PSR_C_bit. 2014-09-10 15:25:15 +00:00
vfp.c Rework the vpf support code so that it compiles with clang 3.4, 3.5, and gcc. 2015-01-01 23:15:52 +00:00
vm_machdep.c Cleanup up ARM *frame structures... 2014-12-24 18:54:31 +00:00