Pass cpu_fork() function to the new process through caller-saved registers
authormiod <miod@openbsd.org>
Wed, 5 Jun 2024 19:22:04 +0000 (19:22 +0000)
committermiod <miod@openbsd.org>
Wed, 5 Jun 2024 19:22:04 +0000 (19:22 +0000)
commitb2db68b468d761b954a669ab4defe6963903aae7
tree580d95a5aaf9825847e05eb541bb9583d4cb1b0a
parent763cddbde0e1b7af7c735976159183bf19089258
Pass cpu_fork() function to the new process through caller-saved registers
in the pcb rather than on the stack. This makes the code simpler and faster
and gets rid of one short timeframe where the stack pointer is only aligned
to an 8 byte boundary instead of a 16 byte boundary.
sys/arch/m88k/m88k/eh_common.S
sys/arch/m88k/m88k/vm_machdep.c