summaryrefslogtreecommitdiff
path: root/memdisk
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-03-30 13:37:09 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2009-03-30 13:37:09 -0700
commitd694ce6fdb18e9c74efd56626fbc345a5810c0db (patch)
treeef412c7c1b3c16a1b6c50bb19c660aa14cd6c840 /memdisk
parentc4ddb8c11aadc695940715be3420c1a97364935a (diff)
downloadsyslinux-d694ce6fdb18e9c74efd56626fbc345a5810c0db.tar.gz
memdisk: Int13FuncsCnt is a constant, not a memory location
Impact: bug fix Int13FuncsCnt is a compile-time constant, not a memory location. This is a rather important distinction.
Diffstat (limited to 'memdisk')
-rw-r--r--memdisk/memdisk.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/memdisk/memdisk.inc b/memdisk/memdisk.inc
index 0df6c770..d53b7781 100644
--- a/memdisk/memdisk.inc
+++ b/memdisk/memdisk.inc
@@ -151,7 +151,7 @@ Int13Start:
mov bp,sp ; Point BP to the entry stack frame
TRACER 'F'
; Note: AH == P_AH here
- cmp ah,[Int13FuncsCnt-1]
+ cmp ah,Int13FuncsCnt-1
ja Invalid_jump
xor al,al ; AL = 0 is standard entry condition
mov di,ax