summaryrefslogtreecommitdiff
path: root/comboot.inc
diff options
context:
space:
mode:
Diffstat (limited to 'comboot.inc')
-rw-r--r--comboot.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/comboot.inc b/comboot.inc
index 0f544c2e..5df900f8 100644
--- a/comboot.inc
+++ b/comboot.inc
@@ -780,9 +780,9 @@ comapi_readdisk:
or esi,P_EDI ; are reserved for future expansion
jnz .err
mov eax,P_EDX
- mov bp,P_CX
mov es,P_ES
mov bx,P_BX
+ mov bp,P_CX ; WE CANNOT use P_* after touching bp!
call getlinsec
clc
ret