home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / cbm / nduk-v39.lha / V39 / include / exec / alerts.i < prev    next >
Text File  |  1992-09-24  |  10KB  |  311 lines

  1.     IFND EXEC_ALERTS_I
  2. EXEC_ALERTS_I SET 1
  3. **
  4. **    $VER: alerts.i 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. *  Use this macro for causing an alert.  It is very sensitive to memory
  30. *  corruption.... like stepping on location 4!    After the alert, it
  31. *  will return.
  32. *
  33. *    A0/A1 and D0/D1 are destroyed
  34. *
  35. *
  36. ALERT        MACRO    (alertNumber, [paramArray])
  37.         movem.l d7/a5/a6,-(sp)
  38.         move.l    #\1,d7
  39.         IFNC    '\2',''
  40.           lea.l    \2,a5
  41.         ENDC
  42.         move.l    4,a6
  43.         jsr    _LVOAlert(a6)
  44.         movem.l    (sp)+,d7/a5/a6
  45.         ENDM
  46. *
  47. *  Use this macro for dead end alerts that never return
  48. *
  49. DEADALERT    MACRO    (alertNumber, [paramArray])
  50.         move.l    #\1,d7
  51.         IFNC    '\2',''
  52.           lea.l \2,a5
  53.         ENDC
  54.         move.l    4,a6
  55.         jsr    _LVOAlert(a6)    ; never returns
  56.         ENDM
  57.  
  58. **********************************************************************
  59. *
  60. *  Hardware/CPU specific alerts:  They may show without the 8 at the
  61. *  front of the number.  These are CPU/68000 specific.    See 680x0
  62. *  programmer's manuals for more details.
  63. *
  64. **********************************************************************
  65. ACPU_BusErr    equ $80000002    ; Hardware bus fault/access error
  66. ACPU_AddressErr    equ $80000003    ; Illegal address access (ie: odd)
  67. ACPU_InstErr    equ $80000004    ; Illegal instruction
  68. ACPU_DivZero    equ $80000005    ; Divide by zero
  69. ACPU_CHK    equ $80000006    ; Check instruction error
  70. ACPU_TRAPV    equ $80000007    ; TrapV instruction error
  71. ACPU_PrivErr    equ $80000008    ; Privilege violation error
  72. ACPU_Trace    equ $80000009    ; Trace error
  73. ACPU_LineA    equ $8000000A    ; Line 1010 Emulator error
  74. ACPU_LineF    equ $8000000B    ; Line 1111 Emulator error
  75. ACPU_Format    equ $8000000E    ; Stack frame format error
  76. ACPU_Spurious    equ $80000018    ; Spurious interrupt error
  77. ACPU_AutoVec1    equ $80000019    ; AutoVector Level 1 interrupt error
  78. ACPU_AutoVec2    equ $8000001A    ; AutoVector Level 2 interrupt error
  79. ACPU_AutoVec3    equ $8000001B    ; AutoVector Level 3 interrupt error
  80. ACPU_AutoVec4    equ $8000001C    ; AutoVector Level 4 interrupt error
  81. ACPU_AutoVec5    equ $8000001D    ; AutoVector Level 5 interrupt error
  82. ACPU_AutoVec6    equ $8000001E    ; AutoVector Level 6 interrupt error
  83. ACPU_AutoVec7    equ $8000001F    ; AutoVector Level 7 interrupt error
  84.  
  85. **********************************************************************
  86. *
  87. *  General Alerts
  88. *
  89. *  For example:  timer.device cannot open math.library:
  90. *
  91. *       ALERT  (AN_TimerDev!AG_OpenLib!AO_MathLib)    ;0x05038015
  92. *
  93. **********************************************************************
  94.  
  95. ;------ alert types
  96. AT_DeadEnd    equ $80000000
  97. AT_Recovery    equ $00000000
  98.  
  99. ;------ general purpose alert codes
  100. AG_NoMemory    equ $00010000
  101. AG_MakeLib    equ $00020000
  102. AG_OpenLib    equ $00030000
  103. AG_OpenDev    equ $00040000
  104. AG_OpenRes    equ $00050000
  105. AG_IOError    equ $00060000
  106. AG_NoSignal    equ $00070000
  107. AG_BadParm    equ $00080000
  108. AG_CloseLib    equ $00090000    ;Usually too many closes
  109. AG_CloseDev    equ $000A0000    ;or a mismatched close
  110. AG_ProcCreate    equ $000B0000    ;Process creation failed
  111.  
  112. ;------ alert objects:
  113. AO_ExecLib    equ $00008001
  114. AO_GraphicsLib    equ $00008002
  115. AO_LayersLib    equ $00008003
  116. AO_Intuition    equ $00008004
  117. AO_MathLib    equ $00008005
  118. AO_DOSLib    equ $00008007
  119. AO_RAMLib    equ $00008008
  120. AO_IconLib    equ $00008009
  121. AO_ExpansionLib    equ $0000800A
  122. AO_DiskfontLib    equ $0000800B
  123. AO_UtilityLib    equ $0000800C
  124. AO_KeyMapLib    equ $0000800D
  125.  
  126. AO_AudioDev    equ $00008010
  127. AO_ConsoleDev    equ $00008011
  128. AO_GamePortDev    equ $00008012
  129. AO_KeyboardDev    equ $00008013
  130. AO_TrackDiskDev equ $00008014
  131. AO_TimerDev    equ $00008015
  132.  
  133. AO_CIARsrc    equ $00008020
  134. AO_DiskRsrc     equ $00008021
  135. AO_MiscRsrc    equ $00008022
  136.  
  137. AO_BootStrap    equ $00008030
  138. AO_Workbench    equ $00008031
  139. AO_DiskCopy    equ $00008032
  140. AO_GadTools    equ $00008033
  141. AO_Unknown    equ $00008035
  142.  
  143. **********************************************************************
  144. *
  145. *   Specific Alerts:
  146. *
  147. *   For example:   exec.library -- corrupted memory list
  148. *
  149. *        ALERT  AN_MemCorrupt    ;8100 0005
  150. *
  151. **********************************************************************
  152.  
  153. ;------ exec.library
  154. AN_ExecLib    equ $01000000
  155. AN_ExcptVect    equ $01000001   ; 68000 exception vector checksum (obs.)
  156. AN_BaseChkSum    equ $01000002    ; Execbase checksum bad (obs.)
  157. AN_LibChkSum    equ $01000003    ; Library checksum failure
  158.  
  159. AN_MemCorrupt    equ $81000005    ; Corrupt memory list detected in FreeMem
  160. AN_IntrMem    equ $81000006    ; No memory for interrupt servers
  161. AN_InitAPtr    equ $01000007    ; InitStruct() of an APTR source (obs.)
  162. AN_SemCorrupt    equ $01000008    ; A semaphore is in an illegal state
  163.                 ; at ReleaseSemaphore()
  164. AN_FreeTwice    equ $01000009    ; Freeing memory that is already free
  165. AN_BogusExcpt    equ $8100000A    ; Illegal 68k exception taken (obs.)
  166. AN_IOUsedTwice    equ $0100000B    ; Attempt to reuse active IORequest
  167. AN_MemoryInsane    equ $0100000C    ; Sanity check on memory list failed
  168.                 ; during AvailMem(MEMF_LARGEST)
  169. AN_IOAfterClose    equ $0100000D    ; IO attempted on closed IORequest
  170. AN_StackProbe    equ $0100000E    ; Stack appears to extend out of range
  171. AN_BadFreeAddr    equ $0100000F    ; Memory header not located. [ Usually an
  172.                 ; invalid address passed to FreeMem() ]
  173. AN_BadSemaphore    equ $01000010    ; An attempt was made to use the old
  174.                 ; message semaphores.
  175.  
  176. ;------ graphics.library
  177. AN_GraphicsLib    equ $02000000
  178. AN_GfxNoMem    equ $82010000    ; graphics out of memory
  179. AN_GfxNoMemMspc equ $82010001    ; MonitorSpec alloc, no memory
  180. AN_LongFrame    equ $82010006    ; long frame, no memory
  181. AN_ShortFrame    equ $82010007    ; short frame, no memory
  182. AN_TextTmpRas    equ $02010009    ; text, no memory for TmpRas
  183. AN_BltBitMap    equ $8201000A    ; BltBitMap, no memory
  184. AN_RegionMemory    equ $8201000B    ; regions, memory not available
  185. AN_MakeVPort    equ $82010030    ; MakeVPort, no memory
  186. AN_GfxNewError    equ $0200000C
  187. AN_GfxFreeError equ $0200000D
  188.  
  189. AN_GfxNoLCM    equ $82011234    ; emergency memory not available
  190.  
  191. AN_ObsoleteFont    equ $02000401    ; unsupported font description used
  192.  
  193. ;------ layers.library
  194. AN_LayersLib    equ $03000000
  195. AN_LayersNoMem    equ $83010000    ; layers out of memory
  196.  
  197. ;------ intuition.library
  198. AN_Intuition    equ $04000000
  199. AN_GadgetType    equ $84000001    ; unknown gadget type
  200. AN_BadGadget    equ $04000001    ; Recovery form of AN_GadgetType
  201. AN_CreatePort    equ $84010002    ; create port, no memory
  202. AN_ItemAlloc    equ $04010003    ; item plane alloc, no memory
  203. AN_SubAlloc    equ $04010004    ; sub alloc, no memory
  204. AN_PlaneAlloc    equ $84010005    ; plane alloc, no memory
  205. AN_ItemBoxTop    equ $84000006    ; item box top < RelZero
  206. AN_OpenScreen    equ $84010007    ; open screen, no memory
  207. AN_OpenScrnRast    equ $84010008    ; open screen, raster alloc, no memory
  208. AN_SysScrnType    equ $84000009    ; open sys screen, unknown type
  209. AN_AddSWGadget    equ $8401000A    ; add SW gadgets, no memory
  210. AN_OpenWindow    equ $8401000B    ; open window, no memory
  211. AN_BadState    equ $8400000C    ; Bad State Return entering Intuition
  212. AN_BadMessage    equ $8400000D    ; Bad Message received by IDCMP
  213. AN_WeirdEcho    equ $8400000E    ; Weird echo causing incomprehension
  214. AN_NoConsole    equ $8400000F    ; couldn't open the Console Device
  215. AN_NoISem    equ $04000010    ; Intuition skipped obtaining a sem
  216. AN_ISemOrder    equ $04000011    ; Intuition obtained a sem in bad order
  217.  
  218. ;------ math.library
  219. AN_MathLib    equ $05000000
  220.  
  221. ;------ dos.library
  222. AN_DOSLib    equ $07000000
  223. AN_StartMem    equ $07010001    ; no memory at startup
  224. AN_EndTask    equ $07000002    ; EndTask didn't
  225. AN_QPktFail    equ $07000003    ; Qpkt failure
  226. AN_AsyncPkt    equ $07000004    ; Unexpected packet received
  227. AN_FreeVec    equ $07000005    ; Freevec failed
  228. AN_DiskBlkSeq    equ $07000006    ; Disk block sequence error
  229. AN_BitMap    equ $07000007    ; Bitmap corrupt
  230. AN_KeyFree    equ $07000008    ; Key already free
  231. AN_BadChkSum    equ $07000009    ; Invalid checksum
  232. AN_DiskError    equ $0700000A    ; Disk Error
  233.