From 38d714f47e8f5d6e237959c54423fc9ab7d5df4d Mon Sep 17 00:00:00 2001 From: Ivan Poddubny Date: Fri, 28 Oct 2005 16:37:38 +0000 Subject: [PATCH] * fixed show_error_parameters in sys32.inc uses the stack instead of TSS git-svn-id: svn://kolibrios.org@16 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/sys32.inc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/kernel/trunk/core/sys32.inc b/kernel/trunk/core/sys32.inc index 479acef5cf..a5cff75257 100644 --- a/kernel/trunk/core/sys32.inc +++ b/kernel/trunk/core/sys32.inc @@ -278,15 +278,13 @@ show_error_parameters: mov [write_error_to],process_error+43 mov eax,[error_interrupt] call writehex - - mov eax,[0x3000] - imul eax,tss_step - cmp [eax+tss_data+l.cs-tss_sceleton], os_code - jz @f + + cmp dword [esp+4+4], os_code ; CS + jnz @f mov esi,system_error call sys_msg_board_str @@: - mov eax,[eax+tss_data+l.eip-tss_sceleton] + mov eax, [esp+4] ; EIP mov [write_error_to],process_eip+43 call writehex