Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1702 | Rev 1760 | ||
---|---|---|---|
Line 71... | Line 71... | ||
71 | if (size <= FRAME_SIZE) |
71 | if (size <= FRAME_SIZE) |
72 | order = 0; |
72 | order = 0; |
73 | else |
73 | else |
74 | order = (fnzb32(size - 1) + 1) - FRAME_WIDTH; |
74 | order = (fnzb32(size - 1) + 1) - FRAME_WIDTH; |
75 | 75 | ||
76 | __address virtaddr = PA2KA(PFN2ADDR(frame_alloc(order, FRAME_KA))); |
76 | __address virtaddr = frame_alloc(order, FRAME_KA); |
77 | 77 | ||
78 | for (i = 0; i < sizemap[order].count; i++) |
78 | for (i = 0; i < sizemap[order].count; i++) |
79 | dtlb_insert_mapping(virtaddr + i*sizemap[order].increment, |
79 | dtlb_insert_mapping(virtaddr + i*sizemap[order].increment, |
80 | physaddr + i*sizemap[order].increment, |
80 | physaddr + i*sizemap[order].increment, |
81 | sizemap[order].pagesize, true, false); |
81 | sizemap[order].pagesize, true, false); |