Split out all arch-specific shm worker functions