home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddrivers.zip / UTILS / ALLOCGDT.C next >
Text File  |  1992-12-29  |  497b  |  23 lines

  1. /* allocate space for a GDT selector during INIT */
  2.  
  3.  if (AllocGDTSelector (1, sel_array))     /* allocate a GDT sel  */
  4.  {
  5.     DosPutMessage(1, 8, devhdr.DHname);
  6.     DosPutMessage(1,strlen(GDTFailMsg),GDTFailMsg);
  7.     break;
  8.  }
  9.  
  10.  /* map the board memory address to the GDT selector */
  11.  
  12.  else
  13.  
  14.  if (PhysToGDTSelector (board_address, (USHORT) MEMSIZE, 
  15.      sel_array[0], &err))
  16.  {
  17.     DosPutMessage(1, 8, devhdr.DHname);
  18.     DosPutMessage(1,strlen(SELFailMsg),SELFailMsg);
  19.       break;
  20.  }
  21.  
  22.  
  23.