Changeset 14 for trunk/src/os2ahci/pci.c
- Timestamp:
- Sep 14, 2010, 10:44:57 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/os2ahci/pci.c
r13 r14 483 483 UCHAR dev_func = data->find_class.dev_func; 484 484 ULONG val; 485 UCHAR rc;486 485 SEL gdt[PORT_DMA_BUF_SEGS + 1]; 487 486 char tmp[40]; … … 831 830 void (_far *func)(void); 832 831 RP_GENIOCTL ioctl; 832 unsigned short prot_idc_ds; 833 833 834 834 if (oemhlp.ProtIDCEntry == NULL || oemhlp.ProtIDC_DS == 0) { … … 867 867 func = oemhlp.ProtIDCEntry; 868 868 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 869 874 _asm { 870 875 push ds; … … 877 882 pop es 878 883 lea bx, ioctl; 879 mov ds, oemhlp.ProtIDC_DS;884 mov ds, prot_idc_ds; 880 885 call dword ptr [func]; 881 886
Note:
See TracChangeset
for help on using the changeset viewer.