Subversion Repositories Kolibri OS

Rev

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

Rev 5363 Rev 7124
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2015. 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: 5363 $
8
$Revision: 7124 $
9
 
9
 
10
 
10
 
Line 167... Line 167...
167
        mov     eax, [eax+SLOT_BASE+APPDATA.pl0_stack]
167
        mov     eax, [eax+SLOT_BASE+APPDATA.pl0_stack]
168
        lea     esi, [eax+RING0_STACK_SIZE]
168
        lea     esi, [eax+RING0_STACK_SIZE]
Line 169... Line 169...
169
 
169
 
170
.ring0:
170
.ring0:
171
; note that following code assumes that all interrupt/exception handlers
171
; note that following code assumes that all interrupt/exception handlers
172
; saves ring-3 context by pushad in this order
172
; save ring-3 context by pushad in this order
173
; top of ring0 stack: ring3 stack ptr (ss+esp), iret data (cs+eip+eflags), pushad
173
; top of ring0 stack: ring3 stack ptr (ss+esp), iret data (cs+eip+eflags), pushad
174
        sub     esi, 8+12+20h
174
        sub     esi, 8+12+20h
175
        lodsd                     ;edi
175
        lodsd                     ;edi
176
        mov     [edi+24h], eax
176
        mov     [edi+24h], eax