freebsd-nq/sys/riscv/include
Mitchell Horne 0d2224733e Implement GET_STACK_USAGE on remaining archs
This definition enables callers to estimate remaining space on the
kstack, and take action on it. Notably, it enables optimizations in the
GEOM and netgraph subsystems to directly dispatch work items when there
is sufficient stack space, rather than queuing them for a worker thread.

Implement it for riscv, arm, and mips. Remove the #ifdefs, so it will
not go unimplemented elsewhere.

PR:		259157
Reviewed by:	mav, kib, markj (previous version)
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32580
2021-11-30 11:15:56 -04:00
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h Reduce code duplication in machine/_types.h 2021-06-14 16:30:16 +01:00
asm.h
atomic.h
bus_dma_impl.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
bus_dma.h
bus.h
clock.h
counter.h
cpu.h arm64, riscv: Fix TRAF_PC() to return the PC, not the return address. 2021-10-01 11:53:12 -07:00
cpufunc.h
db_machdep.h
dump.h minidump: De-duplicate the progress bar 2021-09-29 16:42:21 -03:00
efi.h
elf.h
encoding.h
endian.h Consolidate machine/endian.h definitions 2021-03-26 19:00:22 -03:00
exec.h
float.h
floatingpoint.h
fpe.h
frame.h
ieeefp.h
in_cksum.h
intr.h
kdb.h Introduce kdb-level watchpoint functions 2021-03-29 12:05:43 -03:00
machdep.h
md_var.h minidump: Parameterize minidumpsys() 2021-11-19 15:05:52 -04:00
memdev.h
metadata.h
minidump.h
ofw_machdep.h
param.h
pcb.h
pcpu_aux.h
pcpu.h
pmap.h riscv: Implement pmap_mapdev_attr 2021-10-17 15:31:35 +01:00
pmc_mdep.h
proc.h Implement GET_STACK_USAGE on remaining archs 2021-11-30 11:15:56 -04:00
procctl.h
profile.h
psl.h
pte.h
ptrace.h
reg.h riscv: Make machine/regs.h self-contained 2021-11-23 21:21:17 -07:00
reloc.h
resource.h
riscvreg.h
runq.h
sbi.h
setjmp.h
sf_buf.h
sigframe.h
signal.h
smp.h
stack.h
stdarg.h
sysarch.h
trap.h
ucontext.h
vdso.h riscv: Implement non-stub __vdso_gettc and __vdso_gettimekeep 2021-07-05 16:16:53 +01:00
vm.h
vmparam.h riscv: handle page faults in the unmappable region 2021-10-07 18:12:17 -03:00