memdisk: Int13FuncsCnt is a constant, not a memory location
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 30 Mar 2009 20:37:09 +0000 (13:37 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 30 Mar 2009 20:37:09 +0000 (13:37 -0700)
Impact: bug fix

Int13FuncsCnt is a compile-time constant, not a memory location.  This
is a rather important distinction.

memdisk/memdisk.inc

index 0df6c77..d53b778 100644 (file)
@@ -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