Subversion Repositories Kolibri OS

Rev

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

Rev 914 Rev 928
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
;; 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: 914 $
8
$Revision: 928 $
9
 
9
 
10
EFL_IF      equ 0x0200
10
EFL_IF      equ 0x0200
11
EFL_IOPL1   equ 0x1000
11
EFL_IOPL1   equ 0x1000
Line 1279... Line 1279...
1279
           mov [ebx+REG_ECX], eax
1279
           mov [ebx+REG_ECX], eax
1280
           mov [ebx+REG_EAX], eax
1280
           mov [ebx+REG_EAX], eax
Line 1281... Line 1281...
1281
 
1281
 
1282
           mov eax, [esi+0x08]       ;app_eip
1282
           mov eax, [esi+0x08]       ;app_eip
1283
           mov [ebx+REG_EIP],  eax   ;app_entry
1283
           mov [ebx+REG_EIP],  eax   ;app_entry
1284
           mov [ebx+REG_CS], dword app_code
1284
           mov [ebx+REG_CS], dword sel_app_code
Line 1285... Line 1285...
1285
               mov [ebx+REG_EFLAGS], dword EFL_IOPL3+EFL_IF
1285
               mov [ebx+REG_EFLAGS], dword EFL_IOPL3+EFL_IF
1286
 
1286
 
1287
           mov eax, [esi+0x0C]       ;app_esp
1287
           mov eax, [esi+0x0C]       ;app_esp
Line 1288... Line 1288...
1288
           mov [ebx+REG_APP_ESP], eax    ;app_stack
1288
           mov [ebx+REG_APP_ESP], eax    ;app_stack
1289
           mov [ebx+REG_SS], dword app_data
1289
           mov [ebx+REG_SS], dword sel_app_data
1290
 
1290
 
1291
           lea ecx, [ebx+REG_RET]
1291
           lea ecx, [ebx+REG_RET]