Subversion Repositories Kolibri OS

Rev

Rev 859 | Rev 888 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 859 Rev 860
Line 9... Line 9...
9
;;  Distributed under GPL. See file COPYING for details.        ;;
9
;;  Distributed under GPL. See file COPYING for details.        ;;
10
;;  Copyright 2003 Ville Turjanmaa                              ;;
10
;;  Copyright 2003 Ville Turjanmaa                              ;;
11
;;                                                              ;;
11
;;                                                              ;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 13... Line 13...
13
 
13
 
Line 14... Line 14...
14
$Revision: 859 $
14
$Revision: 860 $
15
 
15
 
16
align 4
16
align 4
17
_init_idt:
17
_init_idt:
Line 173... Line 173...
173
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
173
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
174
show_error_parameters:
174
show_error_parameters:
175
    mov eax,[CURRENT_TASK]
175
    mov eax,[CURRENT_TASK]
176
    shl eax, 5
176
    shl eax, 5
177
    DEBUGF  1, "K : Process - forced terminate PID: %x\n", [CURRENT_TASK + TASKDATA.pid + eax]
177
    DEBUGF  1, "K : Process - forced terminate PID: %x\n", [CURRENT_TASK + TASKDATA.pid + eax]
-
 
178
    mov eax, [error_interrupt]
-
 
179
    cmp al, 0x08
-
 
180
    jne @f
-
 
181
    DEBUGF  1, "K : Double fault\n"
-
 
182
    jmp defined_error
-
 
183
@@:
-
 
184
    cmp al, 0x0a
-
 
185
    jne @f
-
 
186
    DEBUGF  1, "K : Invalid TSS\n"
-
 
187
    jmp defined_error
-
 
188
@@:
-
 
189
    cmp al, 0x0b
-
 
190
    jne @f
-
 
191
    DEBUGF  1, "K : Segment not present\n"
-
 
192
    jmp defined_error
-
 
193
@@:
-
 
194
    cmp al, 0x0c
-
 
195
    jne @f
-
 
196
    DEBUGF  1, "K : Stack fault\n"
-
 
197
    jmp defined_error
-
 
198
@@:
-
 
199
    cmp al, 0x0d
-
 
200
    jne @f
178
    DEBUGF  1, "K : Exception : %x Error : xxxxxxxx\n", [error_interrupt]
201
    DEBUGF  1, "K : General protection fault\n"
-
 
202
    jmp defined_error
-
 
203
@@:
-
 
204
    cmp al, 0x0e
-
 
205
    jne @f
-
 
206
    DEBUGF  1, "K : Page fault\n"
-
 
207
    jmp defined_error
-
 
208
@@:
-
 
209
    DEBUGF  1, "K : Undefined Exception\n"
-
 
210
defined_error:
179
    DEBUGF  1, "K : EAX : %x EBX : %x ECX : %x\n", [esp + 0x20], [esp - 12 + 0x20], [esp - 4 + 0x20]
211
    DEBUGF  1, "K : EAX : %x EBX : %x ECX : %x\n", [esp + 0x20], [esp - 12 + 0x20], [esp - 4 + 0x20]
180
    DEBUGF  1, "K : EDX : %x ESI : %x EDI : %x\n", [esp - 8 + 0x20], [esp - 24 + 0x20], [esp - 28 + 0x20]
212
    DEBUGF  1, "K : EDX : %x ESI : %x EDI : %x\n", [esp - 8 + 0x20], [esp - 24 + 0x20], [esp - 28 + 0x20]
181
    DEBUGF  1, "K : EBP : %x EIP : %x ", [esp - 20 + 0x20], [esp + 4 + 0x20]
213
    DEBUGF  1, "K : EBP : %x EIP : %x ", [esp - 20 + 0x20], [esp + 4 + 0x20]
Line 182... Line 214...
182
 
214