882 pcb->pcb_fsdesc = pcb->pcb_gsdesc = zero_udesc;
883 #endif /* __i386 */
884 lwp_installctx(lwp);
885 return (stk);
886 }
887
888 /*ARGSUSED*/
889 void
890 lwp_stk_fini(klwp_t *lwp)
891 {}
892
893 /*
894 * If we're not the panic CPU, we wait in panic_idle for reboot.
895 */
896 void
897 panic_idle(void)
898 {
899 splx(ipltospl(CLOCK_LEVEL));
900 (void) setjmp(&curthread->t_pcb);
901
902 dumpsys_helper();
903
904 #ifndef __xpv
905 for (;;)
906 i86_halt();
907 #else
908 for (;;)
909 ;
910 #endif
911 }
912
913 /*
914 * Stop the other CPUs by cross-calling them and forcing them to enter
915 * the panic_idle() loop above.
916 */
917 /*ARGSUSED*/
918 void
919 panic_stopcpus(cpu_t *cp, kthread_t *t, int spl)
920 {
921 processorid_t i;
922 cpuset_t xcset;
923
|
882 pcb->pcb_fsdesc = pcb->pcb_gsdesc = zero_udesc;
883 #endif /* __i386 */
884 lwp_installctx(lwp);
885 return (stk);
886 }
887
888 /*ARGSUSED*/
889 void
890 lwp_stk_fini(klwp_t *lwp)
891 {}
892
893 /*
894 * If we're not the panic CPU, we wait in panic_idle for reboot.
895 */
896 void
897 panic_idle(void)
898 {
899 splx(ipltospl(CLOCK_LEVEL));
900 (void) setjmp(&curthread->t_pcb);
901
902 #ifndef __xpv
903 for (;;)
904 i86_halt();
905 #else
906 for (;;)
907 ;
908 #endif
909 }
910
911 /*
912 * Stop the other CPUs by cross-calling them and forcing them to enter
913 * the panic_idle() loop above.
914 */
915 /*ARGSUSED*/
916 void
917 panic_stopcpus(cpu_t *cp, kthread_t *t, int spl)
918 {
919 processorid_t i;
920 cpuset_t xcset;
921
|