Changeset 14 for trunk/src/os2ahci/pci.c


Ignore:
Timestamp:
Sep 14, 2010, 10:44:57 AM (15 years ago)
Author:
markus
Message:

merged last NCQ related changes with Watcom related changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/pci.c

    r13 r14  
    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];
     
    831830  void (_far *func)(void);
    832831  RP_GENIOCTL ioctl;
     832  unsigned short prot_idc_ds;
    833833
    834834  if (oemhlp.ProtIDCEntry == NULL || oemhlp.ProtIDC_DS == 0) {
     
    867867  func = oemhlp.ProtIDCEntry;
    868868
     869  /* The WATCOM compiler does not support struct references in inline
     870   * assembler code, so we 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;
     884    mov  ds, prot_idc_ds;
    880885    call dword ptr [func];
    881886
Note: See TracChangeset for help on using the changeset viewer.