From c92d2a4af9879e17aa16a8f39a9dacd24a4691af Mon Sep 17 00:00:00 2001 From: Doczom Date: Sat, 18 Dec 2021 23:39:17 +0000 Subject: [PATCH] fix 68.31 git-svn-id: svn://kolibrios.org@9442 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/memory.inc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/kernel/trunk/core/memory.inc b/kernel/trunk/core/memory.inc index 283564d4ef..1164b0942f 100644 --- a/kernel/trunk/core/memory.inc +++ b/kernel/trunk/core/memory.inc @@ -1280,22 +1280,21 @@ f68: jnz .fail ; 2 - get info for SRV structure mov eax, -1 - cmp ecx, OS_BASE ; ecx = pointer on structure + cmp edx, OS_BASE ; edx = pointer on structure jbe .fail - stdcall is_region_userspace, edx, 40 ;16+4*6=40 <-max size buffer - jnz .fail ; edx = pointer on buffer - cmp [ecx+SRV.magic], ' SRV' + stdcall is_region_userspace, edi, 40 ;16+4*6=40 <-max size buffer + jnz .fail ; edi = pointer on buffer + cmp [edx+SRV.magic], ' SRV' jne .fail - cmp [ecx+SRV.size], sizeof.SRV + cmp [edx+SRV.size], sizeof.SRV jne .fail - mov edi, edx - mov esi, ecx + mov esi, edx movsd ; name service 16 byte movsd movsd movsd - lea esi, [ecx+SRV.fd] + lea esi, [edx+SRV.fd] movsd ; SRV.fd movsd ; SRV.bk movsd ; SRV.base