Subversion Repositories Kolibri OS

Rev

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

Rev 3296 Rev 3325
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 3296 $
8
$Revision: 3325 $
Line 9... Line 9...
9
 
9
 
Line 1146... Line 1146...
1146
        mov     [ebx+REG_EAX], eax
1146
        mov     [ebx+REG_EAX], eax
Line 1147... Line 1147...
1147
 
1147
 
1148
        mov     eax, [esi+0x08]  ;app_eip
1148
        mov     eax, [esi+0x08]  ;app_eip
1149
        mov     [ebx+REG_EIP], eax;app_entry
1149
        mov     [ebx+REG_EIP], eax;app_entry
-
 
1150
        mov     [ebx+REG_CS], dword app_code
-
 
1151
        mov     eax, [CURRENT_TASK]
-
 
1152
        shl     eax, 8                      ; created by kernel?
-
 
1153
        cmp     [SLOT_BASE+eax+APPDATA.dir_table], sys_pgdir - OS_BASE
-
 
1154
        jnz     @f
-
 
1155
        cmp     [app_path], 0               ; it is a thread?
-
 
1156
        jnz     @f
-
 
1157
        mov     [ebx+REG_CS], dword os_code ; kernel thread
1150
        mov     [ebx+REG_CS], dword app_code
1158
@@:
Line 1151... Line 1159...
1151
        mov     [ebx+REG_EFLAGS], dword EFL_IOPL1+EFL_IF
1159
        mov     [ebx+REG_EFLAGS], dword EFL_IOPL1+EFL_IF
1152
 
1160
 
1153
        mov     eax, [esi+0x0C]  ;app_esp
1161
        mov     eax, [esi+0x0C]  ;app_esp