Subversion Repositories HelenOS-historic

Rev

Rev 1389 | Rev 1609 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1389 Rev 1390
Line 152... Line 152...
152
        __u32 base2 = (~hash & 0x3ff) << 3;
152
        __u32 base2 = (~hash & 0x3ff) << 3;
153
       
153
       
154
        /* Find unused or colliding
154
        /* Find unused or colliding
155
           PTE in PTEG */
155
           PTE in PTEG */
156
        for (i = 0; i < 8; i++) {
156
        for (i = 0; i < 8; i++) {
157
            if (!phte[base2 + i].v) {
157
            if ((!phte[base2 + i].v) || ((phte[base2 + i].vsid == vsid) && (phte[base2 + i].api == api))) {
158
                found = true;
158
                found = true;
159
                base = base2;
159
                base = base2;
160
                h = 1;
160
                h = 1;
161
                break;
161
                break;
162
            }
162
            }
Line 253... Line 253...
253
        page_mapping_operations = &pt_mapping_operations;
253
        page_mapping_operations = &pt_mapping_operations;
254
       
254
       
255
        __address cur;
255
        __address cur;
256
        int flags;
256
        int flags;
257
       
257
       
258
        /* Pages below 128 MB are mapped using BAT,
258
        /* Frames below 128 MB are mapped using BAT,
259
           map rest of the physical memory */
259
           map rest of the physical memory */
260
        for (cur = 128 << 20; cur < last_frame; cur += FRAME_SIZE) {
260
        for (cur = 128 << 20; cur < last_frame; cur += FRAME_SIZE) {
261
            flags = PAGE_CACHEABLE;
261
            flags = PAGE_CACHEABLE;
262
            if ((PA2KA(cur) >= config.base) && (PA2KA(cur) < config.base + config.kernel_size))
262
            if ((PA2KA(cur) >= config.base) && (PA2KA(cur) < config.base + config.kernel_size))
263
                flags |= PAGE_GLOBAL;
263
                flags |= PAGE_GLOBAL;