Changeset 9 for trunk/src/pci.c


Ignore:
Timestamp:
Sep 13, 2010, 12:44:39 AM (15 years ago)
Author:
root
Message:

fixes for Watcom compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/pci.c

    r4 r9  
    483483  UCHAR dev_func  = data->find_class.dev_func;
    484484  ULONG val;
    485   UCHAR rc;
    486485  SEL gdt[PORT_DMA_BUF_SEGS + 1];
    487486  char tmp[40];
     
    830829{
    831830  void (_far *func)(void);
     831  unsigned short prot_idc_DS;
    832832  RP_GENIOCTL ioctl;
    833833
     
    867867  func = oemhlp.ProtIDCEntry;
    868868
     869  /* MT: the Watcom inline assembler does not support struct member reference,
     870   * so we have to pass it in a stack variable
     871   */
     872  prot_idc_DS = oemhlp.ProtIDC_DS;
     873
    869874  _asm {
    870875    push ds;
     
    877882    pop  es
    878883    lea  bx, ioctl;
    879     mov  ds, oemhlp.ProtIDC_DS;
    880     call far ptr [func];
     884    mov  ds, prot_idc_DS;
     885    call dword ptr [func];
    881886
    882887    pop  di;
Note: See TracChangeset for help on using the changeset viewer.