Correctly specify how to detect syslinux
authorhpa <hpa>
Tue, 3 Feb 2004 06:14:15 +0000 (06:14 +0000)
committerhpa <hpa>
Tue, 3 Feb 2004 06:14:15 +0000 (06:14 +0000)
comboot.doc
menu/syslinux.c

index e9327f5..48e7f8f 100644 (file)
@@ -195,7 +195,7 @@ INT 21h AH=30h      Check DOS Version
        hypothetical "DOS 0.0", but the high parts of EAX-EBX-ECX-EDX
        spell "SYSLINUX":
 
-       EAX=53590000h EBX=534C0000h ECX=494E0000h EDX=55580000h
+       EAX=59530000h EBX=4C530000h ECX=4E490000h EDX=58550000h
 
        This function can thus be used to distinguish running on
        SYSLINUX from running on DOS.
index ebb72b5..801e314 100644 (file)
@@ -23,8 +23,8 @@ static inline int asm_issyslinux(void)
   asm("int $0x21"
       : "+a" (eax), "+b" (ebx), "+c" (ecx), "+d" (edx));
 
-  return (eax == 0x53590000) && (ebx == 0x534c0000) &&
-    (ecx == 0x494e0000) && (edx == 0x55580000);
+  return (eax == 0x59530000) && (ebx == 0x4c530000) &&
+    (ecx == 0x4e490000) && (edx == 0x58550000);
 }
 
 int issyslinux(void)