From a168687ac8105645ad573e6a0bfa1efdc93f8876 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Mon, 6 Jun 2011 15:00:38 +0000 Subject: [PATCH] @notify user on #UD exception git-svn-id: svn://kolibrios.org@1948 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/sys32.inc | 8 ++++++++ kernel/trunk/core/taskman.inc | 1 + kernel/trunk/data32.inc | 6 ++++++ 3 files changed, 15 insertions(+) diff --git a/kernel/trunk/core/sys32.inc b/kernel/trunk/core/sys32.inc index 32c4e80a49..64fbfe7c8b 100644 --- a/kernel/trunk/core/sys32.inc +++ b/kernel/trunk/core/sys32.inc @@ -191,6 +191,14 @@ unknown_interrupt: ;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= show_error_parameters: + cmp bl, 0x06 + jnz .no_ud + push ebx + mov ebx, ud_user_message + mov ebp, notifyapp + call fs_execute_from_sysdir_param + pop ebx +.no_ud: mov edx,[TASK_BASE] ;not scratched below DEBUGF 1, "K : Process - forced terminate PID: %x\n", [edx+TASKDATA.pid] cmp bl, 0x08 diff --git a/kernel/trunk/core/taskman.inc b/kernel/trunk/core/taskman.inc index c31b67df7b..49ca4631f3 100644 --- a/kernel/trunk/core/taskman.inc +++ b/kernel/trunk/core/taskman.inc @@ -48,6 +48,7 @@ macro _clear_ op fs_execute_from_sysdir: xor ebx, ebx +fs_execute_from_sysdir_param: xor edx, edx mov esi, sysdir_path diff --git a/kernel/trunk/data32.inc b/kernel/trunk/data32.inc index 90e307d33a..a80a99f266 100644 --- a/kernel/trunk/data32.inc +++ b/kernel/trunk/data32.inc @@ -101,6 +101,12 @@ szIMPORTS db 'IMPORTS',0 read_firstapp db '/sys/' firstapp db 'LAUNCHER',0 +notifyapp db '@notify',0 +if lang eq ru +ud_user_message db 'Ошибка: неподдерживаемая инструкция процессора',0 +else +ud_user_message db 'Error: unsupported processor instruction',0 +end if char db '/sys/FONTS/CHAR.MT',0 char2 db '/sys/FONTS/CHAR2.MT',0