From 5bb3f6793a4ea4ca9d209d88e4777974ec1ce70f Mon Sep 17 00:00:00 2001 From: hpa Date: Tue, 3 Feb 2004 06:14:15 +0000 Subject: [PATCH] Correctly specify how to detect syslinux --- comboot.doc | 2 +- menu/syslinux.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/comboot.doc b/comboot.doc index e9327f5..48e7f8f 100644 --- a/comboot.doc +++ b/comboot.doc @@ -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. diff --git a/menu/syslinux.c b/menu/syslinux.c index ebb72b5..801e314 100644 --- a/menu/syslinux.c +++ b/menu/syslinux.c @@ -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) -- 2.7.4