Rev 2987 | Rev 3555 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2987 | Rev 3232 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 2987 $ |
8 | $Revision: 3232 $ |
9 | 9 | ||
Line 604... | Line 604... | ||
604 | ; retval |
604 | ; retval |
605 | ; eax= phisical page address |
605 | ; eax= phisical page address |
Line 606... | Line 606... | ||
606 | 606 | ||
607 | align 4 |
607 | align 4 |
- | 608 | get_pg_addr: |
|
- | 609 | sub eax, OS_BASE |
|
- | 610 | cmp eax, 0x400000 |
|
608 | get_pg_addr: |
611 | jb @f |
609 | shr eax, 12 |
612 | shr eax, 12 |
- | 613 | mov eax, [page_tabs+(eax+(OS_BASE shr 12))*4] |
|
610 | mov eax, [page_tabs+eax*4] |
614 | @@: |
611 | and eax, 0xFFFFF000 |
615 | and eax, 0xFFFFF000 |
Line 612... | Line 616... | ||
612 | ret |
616 | ret |