Rev 321 | Rev 354 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 321 | Rev 328 | ||
---|---|---|---|
Line 273... | Line 273... | ||
273 | ret |
273 | ret |
274 | endp |
274 | endp |
275 | 275 | ||
Line 276... | Line 276... | ||
276 | ; param |
276 | ; param |
277 | ; eax= page base |
277 | ; eax= page base + page flags |
278 | ; ebx= liear address |
278 | ; ebx= liear address |
279 | ; ecx= count |
279 | ; ecx= count |
Line 280... | Line 280... | ||
280 | 280 | ||
281 | align 4 |
281 | align 4 |
Line -... | Line 282... | ||
- | 282 | commit_pages: |
|
- | 283 | ||
- | 284 | test ecx, ecx |
|
- | 285 | jz .fail |
|
- | 286 | ||
- | 287 | mov edi, ebx |
|
Line -... | Line 288... | ||
- | 288 | mov ebx, pg_data.pg_mutex |
|
- | 289 | call wait_mutex ;ebx |
|
- | 290 | ||
- | 291 | mov edx, 0x1000 |
|
- | 292 | mov ebx, edi |
|
- | 293 | shr ebx, 12 |
|
- | 294 | @@: |
|
- | 295 | mov [pages_tab+ebx*4], eax |
|
- | 296 | invlpg [edi] |
|
- | 297 | add edi, edx |
|
- | 298 | add eax, edx |
|
- | 299 | inc ebx |
|
- | 300 | dec ecx |
|
282 | commit_pages: ;not implemented |
301 | jnz @B |
Line -... | Line 302... | ||
- | 302 | mov [pg_data.pg_mutex],ecx |
|
283 | 303 | .fail: |
|
284 | 304 | ret |
|
285 | ret |
305 | |
Line 286... | Line 306... | ||
286 | 306 | ||
Line 1414... | Line 1434... | ||
1414 | 1434 | ||
Line 1415... | Line 1435... | ||
1415 | sys_page_map rd 1 |
1435 | sys_page_map rd 1 |
1416 | endg |
1436 | endg |
Line 1417... | Line 1437... | ||
1417 | 1437 | ||
1418 | 1438 | if 0 |
|
1419 | ; push eax |
1439 | push eax |
1420 | ; push edx |
1440 | push edx |
1421 | ; mov edx, 0x400 ;bocsh |
1441 | mov edx, 0x400 ;bocsh |
1422 | ; mov al,0xff ;bocsh |
1442 | mov al,0xff ;bocsh |
1423 | ; out dx, al ;bocsh |
1443 | out dx, al ;bocsh |
1424 | ; pop edx |
1444 | pop edx |
1425 | ; pop eax |
1445 | pop eax |
Line 1426... | Line 1446... | ||
1426 | 1446 | end if |
|
1427 | 1447 | ||
1428 | align 4 |
1448 | align 4 |
1429 | k_strrchr: |
1449 | k_strrchr: |