Rev 1375 | Rev 1591 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1375 | Rev 1462 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | ;; ;; |
19 | ;; ;; |
20 | ;; See file COPYING for details ;; |
20 | ;; See file COPYING for details ;; |
21 | ;; ;; |
21 | ;; ;; |
22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
22 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 23... | Line 23... | ||
23 | 23 | ||
Line 24... | Line 24... | ||
24 | $Revision: 1375 $ |
24 | $Revision: 1462 $ |
25 | 25 | ||
26 | ;*************************************************************************** |
26 | ;*************************************************************************** |
27 | ; Function |
27 | ; Function |
Line 462... | Line 462... | ||
462 | mov eax,-4 ; damned ports (not MMIO space) |
462 | mov eax,-4 ; damned ports (not MMIO space) |
463 | jmp mmio_ret_fail |
463 | jmp mmio_ret_fail |
464 | @@: |
464 | @@: |
465 | pop ecx ; ecx = block size, bytes (expanded to whole page) |
465 | pop ecx ; ecx = block size, bytes (expanded to whole page) |
466 | mov ebx, ecx ; user_alloc destroys eax, ecx, edx, but saves ebx |
466 | mov ebx, ecx ; user_alloc destroys eax, ecx, edx, but saves ebx |
- | 467 | and eax, 0xFFFFFFF0 |
|
467 | push eax ; store MMIO physical address + keep 2DWords in the stack |
468 | push eax ; store MMIO physical address + keep 2DWords in the stack |
468 | stdcall user_alloc, ecx |
469 | stdcall user_alloc, ecx |
469 | or eax, eax |
470 | or eax, eax |
470 | jnz mmio_map_over |
471 | jnz mmio_map_over |
471 | mov eax,-5 ; problem with page allocation |
472 | mov eax,-5 ; problem with page allocation |