home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / exec / alerts.i < prev    next >
Text File  |  1993-10-15  |  10KB  |  313 lines

  1.     IFND EXEC_ALERTS_I
  2. EXEC_ALERTS_I SET 1
  3. **
  4. **    $VER: alerts.i 39.4 (13.11.92)
  5. **    Includes Release 40.15
  6. **
  7. **    Alert numbers, as displayed by system crashes.
  8. **
  9. **    (C) Copyright 1985-1993 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. AN_BadQuickInt    equ $810000FF    ; A quick interrupt has happened to an
  176.                 ; uninitialized vector.
  177.  
  178. ;------ graphics.library
  179. AN_GraphicsLib    equ $02000000
  180. AN_GfxNoMem    equ $82010000    ; graphics out of memory
  181. AN_GfxNoMemMspc equ $82010001    ; MonitorSpec alloc, no memory
  182. AN_LongFrame    equ $82010006    ; long frame, no memory
  183. AN_ShortFrame    equ $82010007    ; short frame, no memory
  184. AN_TextTmpRas    equ $02010009    ; text, no memory for TmpRas
  185. AN_BltBitMap    equ $8201000A    ; BltBitMap, no memory
  186. AN_RegionMemory    equ $8201000B    ; regions, memory not available
  187. AN_MakeVPort    equ $82010030    ; MakeVPort, no memory
  188. AN_GfxNewError    equ $0200000C
  189. AN_GfxFreeError equ $0200000D
  190.  
  191. AN_GfxNoLCM    equ $82011234    ; emergency memory not available
  192.  
  193. AN_ObsoleteFont    equ $02000401    ; unsupported font description used
  194.  
  195. ;------ layers.library
  196. AN_LayersLib    equ $03000000
  197. AN_LayersNoMem    equ $83010000    ; layers out of memory
  198.  
  199. ;------ intuition.library
  200. AN_Intuition    equ $04000000
  201. AN_GadgetType    equ $84000001    ; unknown gadget type
  202. AN_BadGadget    equ $04000001    ; Recovery form of AN_GadgetType
  203. AN_CreatePort    equ $84010002    ; create port, no memory
  204. AN_ItemAlloc    equ $04010003    ; item plane alloc, no memory
  205. AN_SubAlloc    equ $04010004    ; sub alloc, no memory
  206. AN_PlaneAlloc    equ $84010005    ; plane alloc, no memory
  207. AN_ItemBoxTop    equ $84000006    ; item box top < RelZero
  208. AN_OpenScreen    equ $84010007    ; open screen, no memory
  209. AN_OpenScrnRast    equ $84010008    ; open screen, raster alloc, no memory
  210. AN_SysScrnType    equ $84000009    ; open sys screen, unknown type
  211. AN_AddSWGadget    equ $8401000A    ; add SW gadgets, no memory
  212. AN_OpenWindow    equ $8401000B    ; open window, no memory
  213. AN_BadState    equ $8400000C    ; Bad State Return entering Intuition
  214. AN_BadMessage    equ $8400000D    ; Bad Message received by IDCMP
  215. AN_WeirdEcho    equ $8400000E    ; Weird echo causing incomprehension
  216. AN_NoConsole    equ $8400000F    ; couldn't open the Console Device
  217. AN_NoISem    equ $04000010    ; Intuition skipped obtaining a sem
  218. AN_ISemOrder    equ $04000011    ; Intuition obtained a sem in bad order
  219.  
  220. ;------ math.library
  221. AN_MathLib    equ $05000000
  222.  
  223. ;------ dos.library
  224. AN_DOSLib    equ $07000000
  225. AN_StartMem    equ $07010001    ; no memory at startup
  226. AN_EndTask    equ $07000002    ; EndTask didn't
  227. AN_QPktFail    equ $07000003    ; Qpkt failure
  228. AN_AsyncPkt    equ $07000004    ; Unexpected packet received
  229. AN_FreeVec    equ $07000005    ; Freevec failed
  230. AN_DiskBlkSeq    equ $07000006    ; Disk block sequence error
  231. AN_BitMap    equ $07000007    ; Bitmap corrupt
  232. AN_KeyFree    equ $07000008    ; Key already free
  233. AN_BadChkSum    equ $07000009    ; Invalid checksum
  234. AN_DiskError    equ $0700000A    ; Disk Error
  235. AN_KeyRange    equ $0700000B    ; Key out of range
  236. AN_BadOverlay    equ $0700000C    ; Bad overlay
  237. AN_BadInitFunc    equ $0700000D    ; Invalid init packet for cli/shell
  238. AN_FileReclosed equ $0700000E    ; A filehandle was closed more than once
  239.  
  240. ;------ ramlib.library
  241. AN_RAMLib    equ $08000000
  242. AN_BadSegList    equ $08000001    ; overlays are illegal for library segments
  243.  
  244. ;------ icon.library
  245. AN_IconLib    equ $09000000
  246.  
  247. ;------ expansion.library
  248. AN_ExpansionLib    equ $0A000000
  249. AN_BadExpansionFree    equ $0A000001    ;Freeed free region
  250.  
  251. ;------ diskfont.library
  252. AN_DiskfontLib    equ $0B000000
  253.  
  254. ;------ audio.device
  255. AN_AudioDev    equ $10000000
  256.  
  257. ;------ console.device
  258. AN_ConsoleDev    equ $11000000
  259. AN_NoWindow    equ $11000001    ; Console can't open initial window
  260.  
  261. ;------ gameport.device
  262. AN_GamePortDev    equ $12000000
  263.  
  264. ;------ keyboard.device
  265. AN_KeyboardDev    equ $13000000
  266.  
  267. ;------ trackdisk.device
  268. AN_TrackDiskDev equ $14000000
  269. AN_TDCalibSeek    equ $14000001    ; calibrate: seek error
  270. AN_TDDelay    equ $14000002    ; delay: error on timer wait
  271.  
  272. ;------    timer.device
  273. AN_TimerDev    equ $15000000
  274. AN_TMBadReq    equ $15000001    ; bad request
  275. AN_TMBadSupply    equ $15000002    ; power supply -- no 50/60hz ticks
  276.  
  277. ;------ cia.resource
  278. AN_CIARsrc    equ $20000000
  279.  
  280. ;------    disk.resource
  281. AN_DiskRsrc    equ $21000000
  282. AN_DRHasDisk    equ $21000001    ; get unit: already has disk
  283. AN_DRIntNoAct    equ $21000002    ; interrupt: no active unit
  284.  
  285. ;------ misc.resource
  286. AN_MiscRsrc    equ $22000000
  287.  
  288. ;------ bootstrap
  289. AN_BootStrap    equ $30000000
  290. AN_BootError    equ $30000001    ; boot code returned an error
  291.  
  292. ;------ workbench
  293. AN_Workbench            equ $31000000
  294. AN_NoFonts            equ $B1000001
  295. AN_WBBadStartupMsg1        equ $31000001
  296. AN_WBBadStartupMsg2        equ $31000002
  297. AN_WBBadIOMsg            equ $31000003    ; Hacker code?
  298. AN_WBReLayoutToolMenu        equ $B1010009    ; GadTools broke?
  299.  
  300. ;------ DiskCopy
  301. AN_DiskCopy    equ $32000000
  302.  
  303. ;------ toolkit for Intuition
  304. AN_GadTools    equ $33000000
  305.  
  306. ;------ System utility library
  307. AN_UtilityLib    equ $34000000
  308.  
  309. ;------ For use by any application that needs it
  310. AN_Unknown    equ $35000000
  311.  
  312.     ENDC ;EXEC_ALERTS_I
  313.