Subversion Repositories HelenOS-historic

Rev

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

Rev 1269 Rev 1270
Line 159... Line 159...
159
        goto fail;
159
        goto fail;
160
 
160
 
161
    /* Record access to PTE */
161
    /* Record access to PTE */
162
    pte->a = 1;
162
    pte->a = 1;
163
   
163
   
164
    page = ADDR2PFN(badvaddr);
164
    page = (badvaddr >> 12) & 0xffff;
165
    api = (badvaddr >> 22) & 0x3f;
165
    api = (badvaddr >> 22) & 0x3f;
166
    asm volatile (
166
    asm volatile (
167
        "mfsrin %0, %1\n"
167
        "mfsrin %0, %1\n"
168
        : "=r" (vsid)
168
        : "=r" (vsid)
169
        : "r" (badvaddr >> 28)
169
        : "r" (badvaddr)
170
    );
170
    );
171
   
171
   
172
    /* Primary hash (xor) */
172
    /* Primary hash (xor) */
173
    hash = ((vsid ^ page) & 0x3ff) << 3;
173
    hash = ((vsid ^ page) & 0x3ff) << 3;
174
   
174