From 395cf49f52279c833f094c965a1cad3aa368dfc9 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Tue, 29 Oct 2013 11:24:28 +0000 Subject: [PATCH] fix usbstor after r4105 git-svn-id: svn://kolibrios.org@4127 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/drivers/imports.inc | 1 + kernel/trunk/drivers/usbstor.asm | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/trunk/drivers/imports.inc b/kernel/trunk/drivers/imports.inc index 72d6ed3e50..df8a757b33 100644 --- a/kernel/trunk/drivers/imports.inc +++ b/kernel/trunk/drivers/imports.inc @@ -60,6 +60,7 @@ kernel_export \ CreateRingBuffer,\ \ GetPid,\ + CreateThread,\ CreateObject,\ DestroyObject,\ CreateEvent,\ diff --git a/kernel/trunk/drivers/usbstor.asm b/kernel/trunk/drivers/usbstor.asm index e72d1a8bae..93654a8fa3 100644 --- a/kernel/trunk/drivers/usbstor.asm +++ b/kernel/trunk/drivers/usbstor.asm @@ -1002,13 +1002,12 @@ proc inquiry_callback ; to allow the USB thread to continue working and handling those requests. ; 4. Thus, create a temporary kernel thread which would do it. mov edx, [esp+8] - push ebx ecx - movi eax, 51 + push ebx ecx esi edi movi ebx, 1 mov ecx, new_disk_thread ; edx = parameter - int 0x40 - pop ecx ebx + call CreateThread + pop edi esi ecx ebx cmp eax, -1 jnz .nothing ; on error, reverse step 3