Subversion Repositories Kolibri OS

Rev

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

Rev 750 Rev 794
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: 750 $
8
$Revision: 794 $
9
 
9
 
10
 
10
 
Line 230... Line 230...
230
;        mov eax, [ebx+APPDATA.pl0_stack]
230
;        mov eax, [ebx+APPDATA.pl0_stack]
231
;        add eax, RING0_STACK_SIZE
231
;        add eax, RING0_STACK_SIZE
232
;        mov [tss._esp0], eax
232
;        mov [tss._esp0], eax
233
        mov ax, graph_data
233
        mov ax, graph_data
234
        mov gs, ax
234
        mov gs, ax
-
 
235
 
-
 
236
        mov eax, [CURRENT_TASK]
235
        mov ecx, cr0
237
        cmp eax, [fpu_owner]
236
        or ecx, CR0_TS   ;set task switch flag
238
        clts                             ;clear a task switch flag
-
 
239
        je @F
-
 
240
                                         ;and set it again if the owner
-
 
241
        mov ecx, cr0                     ;of a fpu has changed
-
 
242
        or ecx, CR0_TS
237
        mov cr0, ecx
243
        mov cr0, ecx
-
 
244
@@:
238
        inc   [context_counter] ;noname & halyavin
245
        inc   [context_counter] ;noname & halyavin
239
 
-
 
240
        test [ebx+APPDATA.dbg_state], 1
246
        test [ebx+APPDATA.dbg_state], 1
241
        jnz @F
247
        jnz @F
242
        ret
248
        ret
243
@@:
249
@@:
244
        mov eax, [ebx+APPDATA.dbg_regs.dr0]
250
        mov eax, [ebx+APPDATA.dbg_regs.dr0]