Subversion Repositories Kolibri OS

Rev

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

Rev 8246 Rev 8247
Line 69... Line 69...
69
format binary as "mnt"
69
format binary as "mnt"
Line 70... Line 70...
70
 
70
 
71
include 'macros.inc'
71
include 'macros.inc'
Line 72... Line 72...
72
include 'struct.inc'
72
include 'struct.inc'
Line 73... Line 73...
73
 
73
 
74
$Revision: 8246 $
74
$Revision: 8247 $
Line 2453... Line 2453...
2453
sysfn_lastkey:          ; 18.12 = return 0 (backward compatibility)
2453
sysfn_lastkey:          ; 18.12 = return 0 (backward compatibility)
2454
        and     dword [esp+32], 0
2454
        and     dword [esp+32], 0
2455
        ret
2455
        ret
2456
;------------------------------------------------------------------------------
2456
;------------------------------------------------------------------------------
2457
sysfn_getversion:       ; 18.13 = get kernel ID and version
2457
sysfn_getversion:       ; 18.13 = get kernel ID and version
-
 
2458
        ; if given memory address belongs to kernel then error
-
 
2459
        mov     eax, ecx
-
 
2460
        mov     ebx, version_end-version_inf
-
 
2461
        call    is_region_userspace
-
 
2462
        test    eax, eax
-
 
2463
        jz      .addr_error
-
 
2464
 
2458
        mov     edi, ecx
2465
        mov     edi, ecx
2459
        mov     esi, version_inf
2466
        mov     esi, version_inf
2460
        mov     ecx, version_end-version_inf
2467
        mov     ecx, version_end-version_inf
2461
        rep movsb
2468
        rep movsb
2462
        ret
2469
        ret
-
 
2470
.addr_error:    ; if given memory address is illegal
-
 
2471
        mov     eax, -1
-
 
2472
        ret   
2463
;------------------------------------------------------------------------------
2473
;------------------------------------------------------------------------------
2464
sysfn_waitretrace:     ; 18.14 = sys wait retrace
2474
sysfn_waitretrace:     ; 18.14 = sys wait retrace
2465
     ;wait retrace functions
2475
     ;wait retrace functions
2466
 sys_wait_retrace:
2476
 sys_wait_retrace:
2467
        mov     edx, 0x3da
2477
        mov     edx, 0x3da