Rev 1103 | Rev 1131 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1103 | Rev 1130 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2008. 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: 1103 $ |
8 | $Revision: 1130 $ |
9 | 9 | ||
10 | 10 | ||
Line 105... | Line 105... | ||
105 | 105 | ||
106 | add edx, (sys_pgmap-OS_BASE)+4095 |
106 | add edx, (sys_pgmap-OS_BASE)+4095 |
107 | and edx, not 4095 |
107 | and edx, not 4095 |
Line -... | Line 108... | ||
- | 108 | mov [tmp_page_tabs], edx |
|
- | 109 | ||
- | 110 | mov edx, esi |
|
- | 111 | cmp edx, (OS_BASE/4096) |
|
- | 112 | jbe @F |
|
- | 113 | mov edx, (OS_BASE/4096) |
|
- | 114 | jmp .set |
|
- | 115 | @@: |
|
108 | mov [tmp_page_tabs], edx |
116 | cmp edx, (HEAP_BASE+HEAP_MIN_SIZE)/4096 |
- | 117 | jae .set |
|
109 | 118 | mov edx, (HEAP_BASE+HEAP_MIN_SIZE)/4096 |
|
110 | mov edx, (((sys_pgmap-OS_BASE) + 0xFFFFFF) and not 0xFFFFFF) shr 12 |
119 | .set: |
111 | mov [pg_data.kernel_pages-OS_BASE], edx |
120 | mov [pg_data.kernel_pages-OS_BASE], edx |
Line 112... | Line 121... | ||
112 | shr edx, 10 |
121 | shr edx, 10 |