Subversion Repositories Kolibri OS

Rev

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

Rev 1687 Rev 1859
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: 1687 $
8
$Revision: 1859 $
9
 
9
 
10
; Old style system call converter
10
; Old style system call converter
11
align 16
11
align 16
Line 42... Line 42...
42
;;                                                            ;;
42
;;                                                            ;;
43
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
43
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 44... Line 44...
44
 
44
 
45
align 32
45
align 32
46
syscall_entry:
-
 
47
;        sti
46
syscall_entry:
-
 
47
	push  ecx
48
	push ecx
48
;        sti
49
	and   eax, 3
49
;        and   eax, 3
-
 
50
;        call    dword [servetable3 + eax * 4]
-
 
51
 
-
 
52
	mov edi, [esp+4]
-
 
53
	mov ecx, [esp+8]
-
 
54
	mov edx, [esp+12]
-
 
55
	mov ebx, [esp+16]
-
 
56
	and al, 1
-
 
57
	jz .hline
-
 
58
	mov eax, [esp+20]
-
 
59
	sti
-
 
60
	call vline
-
 
61
	jmp .done
-
 
62
.hline:
-
 
63
	mov eax, [esp+20]
-
 
64
	sti
-
 
65
	call hline
-
 
66
.done:
-
 
67
 
50
	call	dword [servetable3 + eax * 4]
68
 
51
	pop	ecx
69
	pop	ecx
Line 52... Line 70...
52
	sysret
70
	sysret
53
 
71
 
Line 153... Line 171...
153
      dd sys_end		 ; -1-end application
171
      dd sys_end		 ; -1-end application
Line 154... Line 172...
154
 
172
 
155
align 4
173
align 4
Line 156... Line 174...
156
servetable3:	; Kolibri-A special service
174
servetable3:	; Kolibri-A special service
157
 
175
 
158
	dd	paleholder	 ; 0
176
	dd	hline	    ; 0
159
	dd	paleholder	 ; 1
177
	dd	vline	    ; 1
Line 160... Line 178...
160
	dd	paleholder	 ; 2
178
	dd	paleholder	 ; 2