Rev 3598 | Rev 3742 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3598 | Rev 3615 | ||
---|---|---|---|
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: 3598 $ |
14 | $Revision: 3615 $ |
15 | 15 | ||
16 | align 4 ;3A08 |
16 | align 4 ;3A08 |
17 | build_interrupt_table: |
17 | build_interrupt_table: |
Line 158... | Line 158... | ||
158 | ; not debuggee => say error and terminate |
158 | ; not debuggee => say error and terminate |
159 | call show_error_parameters ;; only ONE using, inline ??? |
159 | call show_error_parameters ;; only ONE using, inline ??? |
160 | ;mov edx, [TASK_BASE] |
160 | ;mov edx, [TASK_BASE] |
161 | mov [edx + TASKDATA.state], byte 4 ; terminate |
161 | mov [edx + TASKDATA.state], byte 4 ; terminate |
162 | call wakeup_osloop |
162 | call wakeup_osloop |
- | 163 | call change_task |
|
163 | jmp change_task ; stack - here it does not matter at all, SEE: core/shed.inc |
164 | ; If we're here, then the main OS thread has crashed before initializing IDLE thread. |
- | 165 | ; Or they both have crashed. Anyway, things are hopelessly broken. |
|
- | 166 | hlt |
|
- | 167 | jmp $-1 |
|
164 | .debug: |
168 | .debug: |
165 | ; we are debugged process, notify debugger and suspend ourself |
169 | ; we are debugged process, notify debugger and suspend ourself |
166 | ; eax=debugger PID |
170 | ; eax=debugger PID |
167 | mov ecx, 1 ; debug_message code=other_exception |
171 | mov ecx, 1 ; debug_message code=other_exception |
168 | cmp bl, 1 ; #DB |
172 | cmp bl, 1 ; #DB |