Subversion Repositories Kolibri OS

Rev

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

Rev 794 Rev 802
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
4
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa      ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 794 $
8
$Revision: 802 $
9
 
9
 
10
 
10
 
Line 11... Line 11...
11
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
11
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
;; IRQ0 HANDLER (TIMER INTERRUPT) ;;
12
;; IRQ0 HANDLER (TIMER INTERRUPT) ;;
13
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
 
14
 
13
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15
 
14
 
16
align 32
15
 
17
irq0:
16
align 32
Line 40... Line 39...
40
        out   dx,al
39
        out   dx,al
Line 41... Line 40...
41
 
40
 
Line 42... Line 41...
42
        mov   [DONT_SWITCH], byte 0
41
        mov   [DONT_SWITCH], byte 0
43
 
-
 
44
        popad
42
 
Line 45... Line 43...
45
 ;       popfd
43
        popad
46
        iretd
44
        iretd
Line 225... Line 223...
225
        je @F
223
        je @F
226
        mov cr3, eax
224
        mov cr3, eax
227
@@:
225
@@:
228
        mov     eax, [ebx+APPDATA.saved_esp0]
226
        mov     eax, [ebx+APPDATA.saved_esp0]
229
        mov     [tss._esp0], eax
227
        mov     [tss._esp0], eax
230
;        mov eax, [ebx+APPDATA.pl0_stack]
-
 
231
;        add eax, RING0_STACK_SIZE
-
 
232
;        mov [tss._esp0], eax
-
 
233
        mov ax, graph_data
228
        mov ax, graph_data
234
        mov gs, ax
229
        mov gs, ax
Line 235... Line 230...
235
 
230
 
236
        mov eax, [CURRENT_TASK]
231
        mov eax, [CURRENT_TASK]