/*- * Copyright (c) 2001 Matthew Dillon. This code is distributed under * the BSD copyright, /usr/src/COPYRIGHT. * * $FreeBSD$ */ #include #include #include #include /* XX */ #include /* XX */ #include #include /* XX */ #include #include #include #include #include #include #include /* * cpu_critical_fork_exit() - cleanup after fork */ void cpu_critical_fork_exit(void) { struct thread *td; td = curthread; td->td_critnest = 1; td->td_md.md_savecrit = (ia64_get_psr() | IA64_PSR_I); } /* * cpu_thread_link() - thread linkup, initialize machine-dependant fields */ void cpu_thread_link(struct thread *td) { td->td_md.md_savecrit = 0; }