home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sd386v50.zip / sd386src.zip / PANIC.C < prev    next >
Text File  |  1992-02-20  |  2KB  |  47 lines

  1. /*****************************************************************************/
  2. /* File:                                             IBM INTERNAL USE ONLY   */
  3. /*   panic.c                                                                 */
  4. /*                                                                           */
  5. /* Description:                                                              */
  6. /*   dump panic message to user and clean-up                                 */
  7. /*                                                                           */
  8. /* Static Functions:                                                         */
  9. /*                                                                           */
  10. /* External Functions:                                                       */
  11. /*                                                                           */
  12. /*                                                                           */
  13. /* History:                                                                  */
  14. /*                                                                           */
  15. /*   02/08/91 Creation of 32-bit SD86, from 16-bit version.                  */
  16. /*                                                                           */
  17. /*...16->32 port.                                                            */
  18. /*...                                                                        */
  19. /*... 02/08/91  100   Philip    port to 32 bit.                              */
  20. /*... 02/12/92  521   Srinivas  Port to C-Set/2.                             */
  21. /*...                                                                        */
  22. /**Includes*******************************************************************/
  23. #include "all.h"                        /* SD86 include files                */
  24.  
  25. extern uint      VideoRows;
  26.  void
  27. panic( uchar why )
  28. {
  29.     CSR DosCsr;
  30.  
  31.     switch( (int)why ){
  32.       case OOquit:
  33.         break;
  34.       default:
  35.         printf( "\nPanic %d -- Press any key to continue\n", why );     /*521*/
  36.         GetKey();
  37.     }
  38.     DosCsr.col = 0;
  39.     DosCsr.row = ( uchar )(VideoRows-1);/* (uchar) cast                   100*/
  40. /** DosCsr.mode = **/
  41.     PutCsr( &DosCsr );
  42.  
  43. /*  SvcTerm(); *//* Added for OS/2 1.1 (4.50 driver) hang at DOSEXIT */
  44.  
  45.     DosExit(1,why);  /* Terminate ALL threads with rc = why */
  46. }
  47.