Rev 82 | Rev 92 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 82 | Rev 85 | ||
---|---|---|---|
Line 2101... | Line 2101... | ||
2101 | dd sysfn_getversion ; 13 = get kernel version |
2101 | dd sysfn_getversion ; 13 = get kernel version |
2102 | dd sysfn_waitretrace ; 14 = wait retrace |
2102 | dd sysfn_waitretrace ; 14 = wait retrace |
2103 | dd sysfn_centermouse ; 15 = center mouse cursor |
2103 | dd sysfn_centermouse ; 15 = center mouse cursor |
2104 | dd sysfn_getfreemem ; 16 = get free memory size |
2104 | dd sysfn_getfreemem ; 16 = get free memory size |
2105 | dd sysfn_getallmem ; 17 = get total memory size |
2105 | dd sysfn_getallmem ; 17 = get total memory size |
- | 2106 | dd sysfn_terminate2 ; 18 = terminate thread using PID instead of slot |
|
2106 | sysfn_num = ($ - sys_system_table)/4 |
2107 | sysfn_num = ($ - sys_system_table)/4 |
2107 | endg |
2108 | endg |
Line 2108... | Line 2109... | ||
2108 | 2109 | ||
2109 | sys_system: |
2110 | sys_system: |
Line 2149... | Line 2150... | ||
2149 | mov [application_table_status],0 |
2150 | mov [application_table_status],0 |
2150 | noatsc: |
2151 | noatsc: |
2151 | noprocessterminate: |
2152 | noprocessterminate: |
2152 | ret |
2153 | ret |
Line -... | Line 2154... | ||
- | 2154 | ||
- | 2155 | sysfn_terminate2: |
|
- | 2156 | ;lock application_table_status mutex |
|
- | 2157 | .table_status: |
|
- | 2158 | cli |
|
- | 2159 | cmp [application_table_status],0 |
|
- | 2160 | je .stf |
|
- | 2161 | sti |
|
- | 2162 | call change_task |
|
- | 2163 | jmp .table_status |
|
- | 2164 | .stf: |
|
- | 2165 | call set_application_table_status |
|
- | 2166 | mov eax,ebx |
|
- | 2167 | call pid_to_slot |
|
- | 2168 | test eax,eax |
|
- | 2169 | jz .not_found |
|
- | 2170 | mov ebx,eax |
|
- | 2171 | cli |
|
- | 2172 | call sysfn_terminate |
|
- | 2173 | mov [application_table_status],0 |
|
- | 2174 | sti |
|
- | 2175 | and dword [esp+36],0 |
|
- | 2176 | ret |
|
- | 2177 | .not_found: |
|
- | 2178 | mov [application_table_status],0 |
|
- | 2179 | or dword [esp+36],-1 |
|
- | 2180 | ret |
|
2153 | 2181 | ||
2154 | sysfn_activate: ; 18.3 = ACTIVATE WINDOW |
2182 | sysfn_activate: ; 18.3 = ACTIVATE WINDOW |
2155 | cmp ebx,2 |
2183 | cmp ebx,2 |
2156 | jb nowindowactivate |
2184 | jb nowindowactivate |
2157 | cmp ebx,[0x3004] |
2185 | cmp ebx,[0x3004] |