Subversion Repositories Kolibri OS

Rev

Rev 1687 | Rev 1928 | Go to most recent revision | Show entire file | Ignore 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 15... Line 15...
15
	mov	ebx, ecx
15
	mov	ebx, ecx
16
	mov	ecx, edx
16
	mov	ecx, edx
17
	mov	edx, esi
17
	mov	edx, esi
18
	mov	esi, edi
18
	mov	esi, edi
19
	movzx	edi, byte[esp+28 + 4]
19
	movzx	edi, byte[esp+28 + 4]
20
	sub	edi, 53			; all zeroes before
20
	sub	edi, 53 		; all zeroes before
21
	call	dword [servetable+edi*4]
21
	call	dword [servetable+edi*4]
22
	ret
22
	ret
Line 23... Line 23...
23
 
23
 
24
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
24
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 42... Line 42...
42
;;                                                            ;;
42
;;                                                            ;;
43
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
43
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 44... Line 44...
44
 
44
 
45
align 32
45
align 32
-
 
46
syscall_entry:
46
syscall_entry:
47
	push  ecx
-
 
48
;        sti
-
 
49
;        and   eax, 3
-
 
50
;        call    dword [servetable3 + eax * 4]
-
 
51
 
47
;        sti
52
	mov edi, [esp+4]
-
 
53
	mov ecx, [esp+8]
-
 
54
	mov edx, [esp+12]
48
	push ecx
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
49
	and   eax, 3
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 65... Line 83...
65
      dd 0
83
      dd 0
66
      dd file_system		 ; 58-Common file system interface
84
      dd file_system		 ; 58-Common file system interface
67
      dd 0
85
      dd 0
68
      dd 0
86
      dd 0
69
      dd 0
87
      dd 0
70
      dd 0		 	 ; 62-PCI functions
88
      dd 0			 ; 62-PCI functions
71
      dd sys_msg_board		 ; 63-System message board
89
      dd sys_msg_board		 ; 63-System message board
Line 72... Line 90...
72
 
90
 
73
  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
91
  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
74
  ;; NEW SYSTEM FUNCTIONS TABLE ;;
92
  ;; NEW SYSTEM FUNCTIONS TABLE ;;
Line 98... Line 116...
98
      dd paleholder		 ; 19-reserved
116
      dd paleholder		 ; 19-reserved
99
      dd sys_midi		 ; 20-ResetMidi and OutputMidi
117
      dd sys_midi		 ; 20-ResetMidi and OutputMidi
100
      dd sys_setup		 ; 21-SetMidiBase,SetKeymap,SetShiftKeymap,.
118
      dd sys_setup		 ; 21-SetMidiBase,SetKeymap,SetShiftKeymap,.
101
      dd sys_settime		 ; 22-setting date,time,clock and alarm-clock
119
      dd sys_settime		 ; 22-setting date,time,clock and alarm-clock
102
      dd sys_wait_event_timeout  ; 23-TimeOutWaitForEvent
120
      dd sys_wait_event_timeout  ; 23-TimeOutWaitForEvent
103
      dd undefined_syscall	; syscall_cdaudio	 ; 24-PlayCdTrack,StopCd and GetCdPlaylist
121
      dd undefined_syscall	; syscall_cdaudio        ; 24-PlayCdTrack,StopCd and GetCdPlaylist
104
      dd undefined_syscall	 ; 25-reserved
122
      dd undefined_syscall	 ; 25-reserved
105
      dd sys_getsetup		 ; 26-GetMidiBase,GetKeymap,GetShiftKeymap,.
123
      dd sys_getsetup		 ; 26-GetMidiBase,GetKeymap,GetShiftKeymap,.
106
      dd undefined_syscall	 ; 27-reserved
124
      dd undefined_syscall	 ; 27-reserved
107
      dd undefined_syscall	 ; 28-reserved
125
      dd undefined_syscall	 ; 28-reserved
108
      dd sys_date		 ; 29-GetDate
126
      dd sys_date		 ; 29-GetDate
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