panic 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. .TH PANIC 9k
  2. .SH NAME
  3. archreset, exit, panic, ndnr \- abandon hope
  4. .SH SYNOPSIS
  5. .ta \w'\fLchar* 'u
  6. .B
  7. void archreset(void)
  8. .br
  9. .B
  10. void exit(int ispanic)
  11. .br
  12. .B
  13. void ndnr(void)
  14. .br
  15. .B
  16. void panic(char *fmt, ...)
  17. .SH DESCRIPTION
  18. .PP
  19. .I Archreset
  20. reboots the machine.
  21. .PP
  22. Depending on configuration settings, the platform-dependent
  23. .I exit
  24. might reboot the system. If
  25. .I ispanic
  26. is set,
  27. .I panic
  28. is called.
  29. .PP
  30. .I Ndnr
  31. (no deposit, no return)
  32. disables all
  33. interrupt sources and halts the current processor.
  34. .PP
  35. .I Panic
  36. writes a message to the console and
  37. causes the system to give up the ghost.
  38. It disables interrupts, dumps the kernel stack,
  39. and halts the current processor;
  40. if more than one, others will gradually come to a halt.
  41. A subsequent
  42. .I panic
  43. on a different processor will halt that processor with
  44. .IR ndnr;
  45. a recursive
  46. .I panic
  47. will reboot the machine with
  48. .IR archreset.
  49. .PP
  50. The format
  51. .I fmt
  52. and associated arguments are the same as those for
  53. .IR print (9).
  54. .I Panic
  55. adds a prefix
  56. .L "panic: cpu\fIn\fP:"
  57. and a trailing newline.
  58. .SH "SEE ALSO"
  59. .IR panic (9)
  60. .SH BUGS
  61. Note the differences with
  62. .IR panic (9).