freebsd-dev/sys/powerpc/booke
Konstantin Belousov c6d31b8306 AST: rework
Make most AST handlers dynamically registered.  This allows to have
subsystem-specific handler source located in the subsystem files,
instead of making subr_trap.c aware of it.  For instance, signal
delivery code on return to userspace is now moved to kern_sig.c.

Also, it allows to have some handlers designated as the cleanup (kclear)
type, which are called both at AST and on thread/process exit.  For
instance, ast(), exit1(), and NFS server no longer need to be aware
about UFS softdep processing.

The dynamic registration also allows third-party modules to register AST
handlers if needed.  There is one caveat with loadable modules: the
code does not make any effort to ensure that the module is not unloaded
before all threads processed through AST handler in it.  In fact, this
is already present behavior for hwpmc.ko and ufs.ko.  I do not think it
is worth the efforts and the runtime overhead to try to fix it.

Reviewed by:	markj
Tested by:	emaste (arm64), pho
Discussed with:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D35888
2022-08-02 21:11:09 +03:00
..
booke_machdep.c Create sys/reg.h for the common code previously in machine/reg.h 2021-08-30 12:50:53 +01:00
locore.S Add CFI start/end proc directives to arm64, i386, and ppc 2020-12-05 00:33:28 +00:00
machdep_e500.c powerpc booke cpu_machine_check: Remove unused variable. 2022-04-18 12:08:10 -07:00
mp_cpudep.c sched: separate out schedinit_ap() 2021-11-03 15:54:59 -05:00
platform_bare.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
pmap_32.c Convert vm_page_alloc() callers to use vm_page_alloc_noobj(). 2021-10-19 21:22:56 -04:00
pmap_64.c Convert vm_page_alloc() callers to use vm_page_alloc_noobj(). 2021-10-19 21:22:56 -04:00
pmap.c Clean up a couple of MD warts in vm_fault_populate(): 2021-03-30 18:15:55 -07:00
spe.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
trap_subr.S AST: rework 2022-08-02 21:11:09 +03:00