Rev 4418 | Rev 4608 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4418 | Rev 4424 | ||
---|---|---|---|
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: 4418 $ |
8 | $Revision: 4424 $ |
9 | 9 | ||
Line 121... | Line 121... | ||
121 | popfd |
121 | popfd |
122 | ret |
122 | ret |
123 | endp |
123 | endp |
Line 124... | Line 124... | ||
124 | 124 | ||
125 | align 4 |
125 | align 4 |
- | 126 | ;proc map_page stdcall,lin_addr:dword,phis_addr:dword,flags:dword |
|
126 | proc map_page stdcall,lin_addr:dword,phis_addr:dword,flags:dword |
127 | map_page: |
127 | push ebx |
128 | push ebx |
128 | mov eax, [phis_addr] |
129 | mov eax, [esp+12] ; phis_addr |
129 | and eax, not 0xFFF |
130 | and eax, not 0xFFF |
130 | or eax, [flags] |
131 | or eax, [esp+16] ; flags |
131 | mov ebx, [lin_addr] |
132 | mov ebx, [esp+8] ; lin_addr |
132 | shr ebx, 12 |
133 | shr ebx, 12 |
133 | mov [page_tabs+ebx*4], eax |
134 | mov [page_tabs+ebx*4], eax |
134 | mov eax, [lin_addr] |
- | |
135 | invlpg [eax] |
135 | mov eax, [esp+8] ; lin_addr |
136 | pop ebx |
136 | pop ebx |
137 | ret |
137 | invlpg [eax] |
Line 138... | Line 138... | ||
138 | endp |
138 | ret 12 |
139 | 139 |