Subversion Repositories Kolibri OS

Rev

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

Rev 1567 Rev 1937
Line 290... Line 290...
290
 
290
 
291
include 'config.inc'
291
include 'config.inc'
292
;__CPU_type equ p5
292
;__CPU_type equ p5
Line 293... Line 293...
293
SYSENTER_VAR    equ 0
293
SYSENTER_VAR    equ 0
294
 
-
 
295
macro mcall a,b,c,d,e,f {   ; mike.dld, updated by Ghost for Fast System Calls
294
 
296
 local  ..ret_point
295
macro mcall a,b,c,d,e,f {   ; mike.dld
297
 __mov eax,a
296
 __mov eax,a
298
 __mov ebx,b
297
 __mov ebx,b
299
 __mov ecx,c
298
 __mov ecx,c
300
 __mov edx,d
299
 __mov edx,d
Line 301... Line -...
301
 __mov esi,e
-
 
302
 __mov edi,f
300
 __mov esi,e
303
 
-
 
304
 if __CPU_type eq p5
-
 
305
    int 0x40
-
 
306
 else
-
 
307
  if __CPU_type eq p6
-
 
308
    push    ebp
-
 
309
    mov ebp, esp
-
 
310
    push    ..ret_point ; it may be 2 or 5 byte
-
 
311
    sysenter
-
 
312
 ..ret_point:
-
 
313
    pop edx
-
 
314
    pop ecx
-
 
315
 
-
 
316
  else
-
 
317
   if __CPU_type eq k6
-
 
318
    push    ecx
-
 
319
    syscall
-
 
320
    pop ecx
-
 
321
   else
-
 
322
    display 'ERROR : unknown CPU type (set to p5)', 10, 13
-
 
323
    __CPU_type equ p5
-
 
324
    int 0x40
-
 
325
   end if
301
 __mov edi,f
Line 326... Line 302...
326
  end if
302
 
327
 end if
303
   int 0x40