Rev 8988 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8988 | Rev 9051 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2021. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License. ;; |
4 | ;; Distributed under terms of the GNU General Public License. ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 8876 $ |
8 | $Revision: 9051 $ |
9 | 9 | ||
10 | align 4 ;3A08 |
10 | align 4 ;3A08 |
11 | build_interrupt_table: |
11 | build_interrupt_table: |
Line 73... | Line 73... | ||
73 | include 'core/sys32-sp.inc' |
73 | include 'core/sys32-sp.inc' |
74 | else |
74 | else |
75 | msg_sel_ker db "kernel", 0 |
75 | msg_sel_ker db "kernel", 0 |
76 | msg_sel_app db "application", 0 |
76 | msg_sel_app db "application", 0 |
77 | end if |
77 | end if |
78 | - | ||
79 | endg |
78 | endg |
Line 80... | Line 79... | ||
80 | 79 | ||
81 | macro save_ring3_context { |
80 | macro save_ring3_context { |
82 | pushad |
81 | pushad |
Line 226... | Line 225... | ||
226 | jbe .l1 |
225 | jbe .l1 |
227 | .l0: |
226 | .l0: |
228 | mov bl, 0x09 |
227 | mov bl, 0x09 |
229 | .l1: |
228 | .l1: |
230 | mov eax, [msg_fault_sel+ebx*4 - 0x08*4] |
229 | mov eax, [msg_fault_sel+ebx*4 - 0x08*4] |
- | 230 | ||
- | 231 | ; Notify show exeption message |
|
- | 232 | pushad |
|
- | 233 | ccall LIBC_SPRINTF, except_notify_msg, except_notify_fstr, [current_slot], [edx+TASKDATA.pid], eax |
|
- | 234 | mov ebx, except_notify_msg ; exception message for @notify |
|
- | 235 | mov ebp, notifyapp ; @notify bin file path |
|
- | 236 | call fs_execute_from_sysdir_param ; Execute a @notify to display an exception |
|
- | 237 | popad |
|
- | 238 | ||
231 | DEBUGF 1, "K : %s\n", eax |
239 | DEBUGF 1, "K : %s\n", eax |
232 | mov eax, [reg_cs3+4] |
240 | mov eax, [reg_cs3+4] |
233 | mov edi, msg_sel_app |
241 | mov edi, msg_sel_app |
234 | mov ebx, [reg_esp3+4] |
242 | mov ebx, [reg_esp3+4] |
235 | cmp eax, app_code |
243 | cmp eax, app_code |
Line 333... | Line 341... | ||
333 | restore reg_esp0 |
341 | restore reg_esp0 |
334 | restore reg_ebp |
342 | restore reg_ebp |
335 | restore reg_esi |
343 | restore reg_esi |
336 | restore reg_edi |
344 | restore reg_edi |
Line 337... | Line -... | ||
337 | - | ||
338 | 345 | ||
339 | align 4 |
346 | align 4 |
340 | lock_application_table: |
347 | lock_application_table: |
341 | push eax ecx edx |
348 | push eax ecx edx |
342 | mov ecx, application_table_mutex |
349 | mov ecx, application_table_mutex |