home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / cbm / nduk-v39.lha / V39 / include / exec / alerts.h < prev    next >
C/C++ Source or Header  |  1992-09-24  |  11KB  |  281 lines

  1. #ifndef EXEC_ALERTS_H
  2. #define EXEC_ALERTS_H
  3. /*
  4. **    $VER: alerts.h 39.3 (12.05.92)
  5. **    Includes Release 39.108
  6. **
  7. **    Alert numbers, as displayed by system crashes.
  8. **
  9. **    (C) Copyright 1985-1992 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. /*********************************************************************
  14. *
  15. *  Format of the alert error number:
  16. *
  17. *    +-+-------------+----------------+--------------------------------+
  18. *    |D|  SubSysId   |    General Error |    SubSystem Specific Error    |
  19. *    +-+-------------+----------------+--------------------------------+
  20. *     1    7 bits       8 bits           16 bits
  21. *
  22. *             D:  DeadEnd alert
  23. *          SubSysId:  indicates ROM subsystem number.
  24. *     General Error:  roughly indicates what the error was
  25. *    Specific Error:  indicates more detail
  26. **********************************************************************/
  27.  
  28. /**********************************************************************
  29. *
  30. *  Hardware/CPU specific alerts:  They may show without the 8 at the
  31. *  front of the number.  These are CPU/68000 specific.    See 680x0
  32. *  programmer's manuals for more details.
  33. *
  34. **********************************************************************/
  35. #define    ACPU_BusErr    0x80000002    /* Hardware bus fault/access error */
  36. #define    ACPU_AddressErr    0x80000003    /* Illegal address access (ie: odd) */
  37. #define    ACPU_InstErr    0x80000004    /* Illegal instruction */
  38. #define    ACPU_DivZero    0x80000005    /* Divide by zero */
  39. #define    ACPU_CHK    0x80000006    /* Check instruction error */
  40. #define    ACPU_TRAPV    0x80000007    /* TrapV instruction error */
  41. #define    ACPU_PrivErr    0x80000008    /* Privilege violation error */
  42. #define    ACPU_Trace    0x80000009    /* Trace error */
  43. #define    ACPU_LineA    0x8000000A    /* Line 1010 Emulator error */
  44. #define    ACPU_LineF    0x8000000B    /* Line 1111 Emulator error */
  45. #define    ACPU_Format    0x8000000E    /* Stack frame format error */
  46. #define    ACPU_Spurious    0x80000018    /* Spurious interrupt error */
  47. #define    ACPU_AutoVec1    0x80000019    /* AutoVector Level 1 interrupt error */
  48. #define    ACPU_AutoVec2    0x8000001A    /* AutoVector Level 2 interrupt error */
  49. #define    ACPU_AutoVec3    0x8000001B    /* AutoVector Level 3 interrupt error */
  50. #define    ACPU_AutoVec4    0x8000001C    /* AutoVector Level 4 interrupt error */
  51. #define    ACPU_AutoVec5    0x8000001D    /* AutoVector Level 5 interrupt error */
  52. #define    ACPU_AutoVec6    0x8000001E    /* AutoVector Level 6 interrupt error */
  53. #define    ACPU_AutoVec7    0x8000001F    /* AutoVector Level 7 interrupt error */
  54.  
  55. /*********************************************************************
  56. *
  57. *  General Alerts
  58. *
  59. *  For example: timer.device cannot open math.library would be 0x05038015
  60. *
  61. *    Alert(AN_TimerDev|AG_OpenLib|AO_MathLib);
  62. *
  63. *********************************************************************/
  64.  
  65. /*------ alert types */
  66. #define AT_DeadEnd    0x80000000
  67. #define AT_Recovery    0x00000000
  68.  
  69. /*------ general purpose alert codes */
  70. #define AG_NoMemory    0x00010000
  71. #define AG_MakeLib    0x00020000
  72. #define AG_OpenLib    0x00030000
  73. #define AG_OpenDev    0x00040000
  74. #define AG_OpenRes    0x00050000
  75. #define AG_IOError    0x00060000
  76. #define AG_NoSignal    0x00070000
  77. #define AG_BadParm    0x00080000
  78. #define AG_CloseLib    0x00090000    /* usually too many closes */
  79. #define AG_CloseDev    0x000A0000    /* or a mismatched close */
  80. #define AG_ProcCreate    0x000B0000    /* Process creation failed */
  81.  
  82. /*------ alert objects: */
  83. #define AO_ExecLib    0x00008001
  84. #define AO_GraphicsLib    0x00008002
  85. #define AO_LayersLib    0x00008003
  86. #define AO_Intuition    0x00008004
  87. #define AO_MathLib    0x00008005
  88. #define AO_DOSLib    0x00008007
  89. #define AO_RAMLib    0x00008008
  90. #define AO_IconLib    0x00008009
  91. #define AO_ExpansionLib 0x0000800A
  92. #define AO_DiskfontLib    0x0000800B
  93. #define AO_UtilityLib    0x0000800C
  94. #define    AO_KeyMapLib    0x0000800D
  95.  
  96. #define AO_AudioDev    0x00008010
  97. #define AO_ConsoleDev    0x00008011
  98. #define AO_GamePortDev    0x00008012
  99. #define AO_KeyboardDev    0x00008013
  100. #define AO_TrackDiskDev 0x00008014
  101. #define AO_TimerDev    0x00008015
  102.  
  103. #define AO_CIARsrc    0x00008020
  104. #define AO_DiskRsrc    0x00008021
  105. #define AO_MiscRsrc    0x00008022
  106.  
  107. #define AO_BootStrap    0x00008030
  108. #define AO_Workbench    0x00008031
  109. #define AO_DiskCopy    0x00008032
  110. #define AO_GadTools    0x00008033
  111. #define AO_Unknown    0x00008035
  112.  
  113. /*********************************************************************
  114. *
  115. *   Specific Alerts:
  116. *
  117. *   For example:   exec.library -- corrupted memory list
  118. *
  119. *        ALERT  AN_MemCorrupt    ;8100 0005
  120. *
  121. *********************************************************************/
  122.  
  123. /*------ exec.library */
  124. #define AN_ExecLib    0x01000000
  125. #define AN_ExcptVect    0x01000001 /* 68000 exception vector checksum (obs.) */
  126. #define AN_BaseChkSum    0x01000002 /* Execbase checksum (obs.) */
  127. #define AN_LibChkSum    0x01000003 /* Library checksum failure */
  128.  
  129. #define AN_MemCorrupt    0x81000005 /* Corrupt memory list detected in FreeMem */
  130. #define AN_IntrMem    0x81000006 /* No memory for interrupt servers */
  131. #define AN_InitAPtr    0x01000007 /* InitStruct() of an APTR source (obs.) */
  132. #define AN_SemCorrupt    0x01000008 /* A semaphore is in an illegal state
  133.                       at ReleaseSemaphore() */
  134. #define AN_FreeTwice    0x01000009 /* Freeing memory already freed */
  135. #define AN_BogusExcpt    0x8100000A /* illegal 68k exception taken (obs.) */
  136. #define AN_IOUsedTwice    0x0100000B /* Attempt to reuse active IORequest */
  137. #define AN_MemoryInsane 0x0100000C /* Sanity check on memory list failed
  138.                       during AvailMem(MEMF_LARGEST) */
  139. #define AN_IOAfterClose 0x0100000D /* IO attempted on closed IORequest */
  140. #define AN_StackProbe    0x0100000E /* Stack appears to extend out of range */
  141. #define AN_BadFreeAddr    0x0100000F /* Memory header not located. [ Usually an
  142.                       invalid address passed to FreeMem() ] */
  143. #define    AN_BadSemaphore    0x01000010 /* An attempt was made to use the old
  144.                       message semaphores. */
  145.  
  146. /*------ graphics.library */
  147. #define AN_GraphicsLib    0x02000000
  148. #define AN_GfxNoMem    0x82010000    /* graphics out of memory */
  149. #define AN_GfxNoMemMspc 0x82010001    /* MonitorSpec alloc, no memory */
  150. #define AN_LongFrame    0x82010006    /* long frame, no memory */
  151. #define AN_ShortFrame    0x82010007    /* short frame, no memory */
  152. #define AN_TextTmpRas    0x02010009    /* text, no memory for TmpRas */
  153. #define AN_BltBitMap    0x8201000A    /* BltBitMap, no memory */
  154. #define AN_RegionMemory 0x8201000B    /* regions, memory not available */
  155. #define AN_MakeVPort    0x82010030    /* MakeVPort, no memory */
  156. #define AN_GfxNewError    0x0200000C
  157. #define AN_GfxFreeError 0x0200000D
  158.  
  159. #define AN_GfxNoLCM    0x82011234    /* emergency memory not available */
  160.  
  161. #define AN_ObsoleteFont 0x02000401    /* unsupported font description used */
  162.  
  163. /*------ layers.library */
  164. #define AN_LayersLib    0x03000000
  165. #define AN_LayersNoMem    0x83010000    /* layers out of memory */
  166.  
  167. /*------ intuition.library */
  168. #define AN_Intuition    0x04000000
  169. #define AN_GadgetType    0x84000001    /* unknown gadget type */
  170. #define AN_BadGadget    0x04000001    /* Recovery form of AN_GadgetType */
  171. #define AN_CreatePort    0x84010002    /* create port, no memory */
  172. #define AN_ItemAlloc    0x04010003    /* item plane alloc, no memory */
  173. #define AN_SubAlloc    0x04010004    /* sub alloc, no memory */
  174. #define AN_PlaneAlloc    0x84010005    /* plane alloc, no memory */
  175. #define AN_ItemBoxTop    0x84000006    /* item box top < RelZero */
  176. #define AN_OpenScreen    0x84010007    /* open screen, no memory */
  177. #define AN_OpenScrnRast 0x84010008    /* open screen, raster alloc, no memory */
  178. #define AN_SysScrnType    0x84000009    /* open sys screen, unknown type */
  179. #define AN_AddSWGadget    0x8401000A    /* add SW gadgets, no memory */
  180. #define AN_OpenWindow    0x8401000B    /* open window, no memory */
  181. #define AN_BadState    0x8400000C    /* Bad State Return entering Intuition */
  182. #define AN_BadMessage    0x8400000D    /* Bad Message received by IDCMP */
  183. #define AN_WeirdEcho    0x8400000E    /* Weird echo causing incomprehension */
  184. #define AN_NoConsole    0x8400000F    /* couldn't open the Console Device */
  185. #define    AN_NoISem    0x04000010    /* Intuition skipped obtaining a sem */
  186. #define    AN_ISemOrder    0x04000011    /* Intuition obtained a sem in bad order */
  187.  
  188. /*------ math.library */
  189. #define AN_MathLib    0x05000000
  190.  
  191. /*------ dos.library */
  192. #define AN_DOSLib    0x07000000
  193. #define AN_StartMem    0x07010001 /* no memory at startup */
  194. #define AN_EndTask    0x07000002 /* EndTask didn't */
  195. #define AN_QPktFail    0x07000003 /* Qpkt failure */
  196. #define AN_AsyncPkt    0x07000004 /* Unexpecte