diff options
author | Javier <dev.git@javispedro.com> | 2022-03-11 00:40:34 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-03-11 00:40:34 +0100 |
commit | a5ae81421c666fe55bbd8c6272cc94da9acd830b (patch) | |
tree | 8e74c9701ebd27bc06f11878901d38267ea02cb3 /vds.h | |
parent | 97b4a5b95e0f6a3fbe2f785b95dd92663f40c8cc (diff) | |
download | vbados-a5ae81421c666fe55bbd8c6272cc94da9acd830b.tar.gz vbados-a5ae81421c666fe55bbd8c6272cc94da9acd830b.zip |
fix random lock failure with paging on/vds
Diffstat (limited to 'vds.h')
-rw-r--r-- | vds.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -95,14 +95,14 @@ static vdserr vds_lock_dma_buffer_region(VDS_DDS __far * dds, unsigned char flag "mov ax, 0x8103" \ "int 0x4B" \ "jc fail" \ - "mov ah, 0" \ + "mov al, 0" \ "jmp end" \ - "fail: test ah, ah" \ + "fail: test al, al" \ "jnz end" \ - "mov ah, 0xFF" /* Force a error code if there was none. */ \ + "mov al, 0xFF" /* Force a error code if there was none. */ \ "end:" \ __parm [es di] [dx] \ - __value [ah] \ + __value [al] \ __modify [ax] /** Unlocks a locked buffer. */ @@ -112,14 +112,14 @@ static vdserr vds_unlock_dma_buffer_region(VDS_DDS __far * dds, unsigned char fl "mov ax, 0x8104" \ "int 0x4B" \ "jc fail" \ - "mov ah, 0" \ + "mov al, 0" \ "jmp end" \ - "fail: test ah, ah" \ + "fail: test al, al" \ "jnz end" \ - "mov ah, 0xFF" \ + "mov al, 0xFF" \ "end:" \ __parm [es di] [dx] \ - __value [ah] \ + __value [al] \ __modify [ax] #endif |