/* WARNING: This routine is hairy and very complicated, but it must be as fast as possible as it handles the allocation of register windows to the user and kernel. If you touch this code be very careful as many other pieces of the kernel depend upon how this code behaves. You have been duly warned... */
https://github.com/torvalds/linux/blob/v6.18/arch/sparc/kernel/wof.S#L18-L24