Subversion Repositories Kolibri OS

Rev

Rev 593 | Rev 709 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 593 Rev 634
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: 593 $
8
$Revision: 634 $
9
 
9
 
10
 
10
 
Line 223... Line 223...
223
        mov eax, [ebx+APPDATA.dir_table]
223
        mov eax, [ebx+APPDATA.dir_table]
224
        cmp eax, [esi+APPDATA.dir_table]
224
        cmp eax, [esi+APPDATA.dir_table]
225
        je @F
225
        je @F
226
        mov cr3, eax
226
        mov cr3, eax
227
@@:
227
@@:
228
        mov ebx, [ebx+APPDATA.pl0_stack]
228
        mov eax, [ebx+APPDATA.pl0_stack]
229
        add ebx, RING0_STACK_SIZE
229
        add eax, RING0_STACK_SIZE
230
        mov [tss._esp0], ebx
230
        mov [tss._esp0], eax
231
        mov ax, graph_data
231
        mov ax, graph_data
232
        mov gs, ax
232
        mov gs, ax
233
        mov ecx, cr0
233
        mov ecx, cr0
234
        or ecx, CR0_TS   ;set task switch flag
234
        or ecx, CR0_TS   ;set task switch flag
235
        mov cr0, ecx
235
        mov cr0, ecx