Subversion Repositories Kolibri OS

Rev

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

Rev 375 Rev 477
Line 127... Line 127...
127
 if ~a eq
127
 if ~a eq
128
   mov reg,a
128
   mov reg,a
129
 end if
129
 end if
130
}
130
}
Line -... Line 131...
-
 
131
 
-
 
132
__CPU_type	equ	p5
-
 
133
SYSENTER_VAR	equ	0
131
 
134
 
-
 
135
macro mcall a,b,c,d,e,f {   ; mike.dld, updated by Ghost for Fast System Calls
132
macro mcall a,b,c,d,e,f {   ; mike.dld
136
 local	..ret_point
133
 __mov eax,a
137
 __mov eax,a
134
 __mov ebx,b
138
 __mov ebx,b
135
 __mov ecx,c
139
 __mov ecx,c
136
 __mov edx,d
140
 __mov edx,d
137
 __mov esi,e
141
 __mov esi,e
-
 
142
 __mov edi,f
-
 
143
 
-
 
144
 if __CPU_type eq p5
-
 
145
	int	0x40
-
 
146
 else
-
 
147
  if __CPU_type eq p6
-
 
148
	push	ebp
-
 
149
	mov	ebp, esp
-
 
150
	push	..ret_point	; it may be 2 or 5 byte
-
 
151
	sysenter
-
 
152
 ..ret_point:
-
 
153
	pop	edx
-
 
154
	pop	ecx
-
 
155
 
-
 
156
  else
-
 
157
   if __CPU_type eq k6
-
 
158
	push	ecx
-
 
159
	syscall
-
 
160
	pop	ecx
-
 
161
   else
138
 __mov edi,f
162
	display 'ERROR : unknown CPU type'
-
 
163
	int	0x40
-
 
164
   end if
-
 
165
  end if
139
 int   0x40
166
 end if
Line 140... Line -...
140
}
-
 
141
 
167
}
142
 
168