home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / misc / amigem.lha / amigem / exec / misc.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-02  |  1.1 KB  |  60 lines

  1. #include <exec/alerts.h>
  2. #include <clib/_exec.h>
  3. #include "exec.h"
  4. #include <stdio.h>
  5.  
  6. #include <amigem/fd_lib.h>
  7. #define LIBBASE struct ExecBase *SysBase
  8.  
  9. void putChar();
  10.  
  11. FD1(18,void,Alert,ULONG alertnum,D7)
  12. {
  13.   UBYTE buf[29];
  14.   ULONG d[2];
  15.   Disable();
  16.     d[0]=alertnum;
  17.     d[1]=(ULONG)SysBase->ThisTask;
  18.     RawDoFmt("Guru: 0x%08lx 0x%08lx\n",d,&putChar,buf);
  19.     (*(void (*)(int,char *,int))SysBase->functable[12])(2,buf,28);
  20.     if(alertnum&AT_DeadEnd)
  21.       ColdReboot();
  22.   Enable();
  23. }
  24.  
  25. FD0(121,void,ColdReboot)
  26. {
  27.   (*(void (*)(int))SysBase->functable[13])(20);
  28. }
  29.  
  30. FD1(19,void,Debug,ULONG flags,D0)
  31. {}
  32.  
  33. /* Very bad stuff. I hope nobody needs it. */
  34.  
  35. FD2(108,ULONG,CacheControl,ULONG bits,D0,ULONG mask,D1)
  36. { return 0; }
  37.  
  38. FD1(5,ULONG,Supervisor,void *userFunc,A5)
  39. { return 0; }
  40.  
  41. FD0(25,APTR,SuperState)
  42. { return NULL; }
  43.  
  44. FD1(26,void,UserState,APTR sysStack,D0)
  45. {}
  46.  
  47. FD1(57,LONG,AllocTrap,LONG trapNum,D0)
  48. { return 0; }
  49.  
  50. FD1(58,void,FreeTrap,ULONG trapNum,D0)
  51. {}
  52.  
  53. /* Useless on other CPUs */
  54.  
  55. FD2(24,ULONG,SetSR,ULONG newSR,D0,ULONG mask,D1)
  56. { return 0; }
  57.  
  58. FD0(88,void,GetCC)
  59. {}
  60.