aboutsummaryrefslogtreecommitdiff
path: root/vds.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-03-11 00:40:34 +0100
committerJavier <dev.git@javispedro.com>2022-03-11 00:40:34 +0100
commita5ae81421c666fe55bbd8c6272cc94da9acd830b (patch)
tree8e74c9701ebd27bc06f11878901d38267ea02cb3 /vds.h
parent97b4a5b95e0f6a3fbe2f785b95dd92663f40c8cc (diff)
downloadvbados-a5ae81421c666fe55bbd8c6272cc94da9acd830b.tar.gz
vbados-a5ae81421c666fe55bbd8c6272cc94da9acd830b.zip
fix random lock failure with paging on/vds
Diffstat (limited to 'vds.h')
-rw-r--r--vds.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/vds.h b/vds.h
index d09c375..c006e1d 100644
--- a/vds.h
+++ b/vds.h
@@ -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