Rev 1903 | Rev 1918 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1903 | Rev 1917 | ||
---|---|---|---|
Line 117... | Line 117... | ||
117 | { PAGESIZE_64K, 8*PAGE_SIZE, 4 }, /* 256K */ |
117 | { PAGESIZE_64K, 8*PAGE_SIZE, 4 }, /* 256K */ |
118 | { PAGESIZE_512K, 0, 1 }, /* 512K */ |
118 | { PAGESIZE_512K, 0, 1 }, /* 512K */ |
119 | { PAGESIZE_512K, 64*PAGE_SIZE, 2 }, /* 1M */ |
119 | { PAGESIZE_512K, 64*PAGE_SIZE, 2 }, /* 1M */ |
120 | { PAGESIZE_512K, 64*PAGE_SIZE, 4 }, /* 2M */ |
120 | { PAGESIZE_512K, 64*PAGE_SIZE, 4 }, /* 2M */ |
121 | { PAGESIZE_4M, 0, 1 } /* 4M */ |
121 | { PAGESIZE_4M, 0, 1 } /* 4M */ |
- | 122 | { PAGESIZE_4M, 512*PAGE_SIZE, 2 } /* 8M */ |
|
122 | }; |
123 | }; |
123 | 124 | ||
124 | ASSERT(ALIGN_UP(physaddr, PAGE_SIZE) == physaddr); |
125 | ASSERT(ALIGN_UP(physaddr, PAGE_SIZE) == physaddr); |
125 | ASSERT(size <= 4*1024*1024); |
126 | ASSERT(size <= 8*1024*1024); |
126 | 127 | ||
127 | if (size <= FRAME_SIZE) |
128 | if (size <= FRAME_SIZE) |
128 | order = 0; |
129 | order = 0; |
129 | else |
130 | else |
130 | order = (fnzb64(size - 1) + 1) - FRAME_WIDTH; |
131 | order = (fnzb64(size - 1) + 1) - FRAME_WIDTH; |