From 43399a43359fbade8f55ad52908501ac213884eb Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Mon, 23 Jul 2007 09:53:49 +0000 Subject: [PATCH] Correct fat32readwrite prototype and register use in detect LBA pragma. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1342 6ac86273-5f31-0410-b378-82cca8765d1b --- sys/sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys.c b/sys/sys.c index c08ced5..f4df95e 100644 --- a/sys/sys.c +++ b/sys/sys.c @@ -516,7 +516,7 @@ int2526readwrite(DosDrive, diskReadPacket, 0x26) #endif -fat32readwrite(int DosDrive, void *diskReadPacket, unsigned intno) +int fat32readwrite(int DosDrive, void *diskReadPacket, unsigned intno) { union REGS regs; @@ -643,7 +643,7 @@ BOOL haveLBA(void); /* return TRUE if we have LBA BIOS, FALSE otherwise */ "and cx, 1" \ "xchg cx, ax" \ "quit:" \ - modify [bx cx] \ + modify [bx cx dx] \ value [ax]; #else