freebsd-src/sys/riscv/riscv
Mark Johnston 7b68fb5ab2 thread: Add a return value to cpu_set_upcall()
Some implementations copy data to userspace, an operation which can in
principle fail.  In preparation for adding a __result_use_check
annotation to copyin() and related functions, let implementations of
cpu_set_upcall() return an error, and check for errors when copying data
to user memory.

Reviewed by:	kib, jhb
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D43100
2023-12-25 21:04:00 -05:00
..
autoconf.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
bus_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
bus_space_asm.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
busdma_bounce.c busdma: tidy bus_dma_run_filter() functions 2023-12-06 19:11:39 -04:00
busdma_machdep.c busdma: tidy bus_dma_run_filter() functions 2023-12-06 19:11:39 -04:00
clock.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
copyinout.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
cpufunc_asm.S sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
db_disasm.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
db_interface.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
db_trace.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
dump_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
elf_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
exception.S riscv: Save gp in the trapframe in both modes 2023-09-05 09:04:54 -07:00
exec_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gdb_machdep.c spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
genassym.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
identcpu.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
intr_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
locore.S sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
mem.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
minidump_machdep.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
mp_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
nexus.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ofw_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
plic.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
pmap.c sys: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
ptrace_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
riscv_console.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
riscv_syscon.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
sbi.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
stack_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
support.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 sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
timer.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
trap.c riscv: Tidy panic messages for exceptions 2023-10-11 14:21:12 -07:00
uio_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
uma_machdep.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
unwind.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
vm_machdep.c thread: Add a return value to cpu_set_upcall() 2023-12-25 21:04:00 -05:00