Subversion Repositories Kolibri OS

Rev

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

Rev 168 Rev 170
Line 670... Line 670...
670
        rep  movsd
670
        rep  movsd
Line 671... Line 671...
671
 
671
 
672
        mov  ax,tss0
672
        mov  ax,tss0
Line 673... Line -...
673
        ltr  ax
-
 
674
 
673
        ltr  ax
Line 675... Line 674...
675
 
674
 
676
; READ TSC / SECOND
675
; READ TSC / SECOND
677
 
676
 
Line 1910... Line 1909...
1910
     mov   eax,5
1909
     mov   eax,5
1911
     call  delay_hs
1910
     call  delay_hs
1912
     jmp   waitterm
1911
     jmp   waitterm
Line 1913... Line 1912...
1913
 
1912
 
-
 
1913
iglobal
1914
iglobal
1914
align 4
1915
sys_system_table:
1915
sys_system_table:
1916
        dd      sysfn_shutdown          ; 1 = system shutdown
1916
        dd      sysfn_shutdown          ; 1 = system shutdown
1917
        dd      sysfn_terminate         ; 2 = terminate thread
1917
        dd      sysfn_terminate         ; 2 = terminate thread
1918
        dd      sysfn_activate          ; 3 = activate window
1918
        dd      sysfn_activate          ; 3 = activate window
Line 1931... Line 1931...
1931
        dd      sysfn_getfreemem        ; 16 = get free memory size
1931
        dd      sysfn_getfreemem        ; 16 = get free memory size
1932
        dd      sysfn_getallmem         ; 17 = get total memory size
1932
        dd      sysfn_getallmem         ; 17 = get total memory size
1933
        dd      sysfn_terminate2        ; 18 = terminate thread using PID
1933
        dd      sysfn_terminate2        ; 18 = terminate thread using PID
1934
                                        ;                 instead of slot
1934
                                        ;                 instead of slot
1935
        dd      sysfn_mouse_acceleration; 19 = set/get mouse acceleration
1935
        dd      sysfn_mouse_acceleration; 19 = set/get mouse acceleration
-
 
1936
        dd      sysfn_meminfo           ; 20 = get extended memory info
1936
sysfn_num = ($ - sys_system_table)/4
1937
sysfn_num = ($ - sys_system_table)/4
1937
endg
1938
endg
Line 1938... Line 1939...
1938
 
1939
 
1939
sys_system:
1940
sys_system:
Line 2162... Line 2163...
2162
     rol   ecx,16
2163
     rol   ecx,16
2163
 .end:
2164
 .end:
2164
     ret
2165
     ret
Line 2165... Line 2166...
2165
 
2166
 
2166
sysfn_getfreemem:
2167
sysfn_getfreemem:
2167
     mov  eax,[MEM_FreeSpace]
2168
     mov eax, [pg_data.pages_free]
2168
     shl  eax,2
2169
     shl eax, 2
2169
     mov  [esp+36],eax
2170
     mov [esp+36],eax
Line 2170... Line 2171...
2170
     ret
2171
     ret
2171
 
2172
 
2172
sysfn_getallmem:
2173
sysfn_getallmem:
2173
     mov  eax,[0xFE8C]
-
 
2174
     shr  eax,10
-
 
2175
;     mov  eax,[MEM_AllSpace]
2174
     mov  eax,[MEM_AMOUNT]
2176
;     shl  eax,2
2175
     shr eax, 10
Line 2177... Line 2176...
2177
     mov  [esp+36],eax
2176
     mov  [esp+36],eax
2178
     ret
2177
     ret