|
364 | 364 | .align 32 |
365 | 365 | .endm |
366 | 366 |
|
367 | | - /* The following are simple 32 vs 64 bit instruction |
368 | | - * abstractions for the macros */ |
369 | | - .macro EXTR reg1,start,length,reg2 |
370 | | -#ifdef CONFIG_64BIT |
371 | | - extrd,u \reg1,32+(\start),\length,\reg2 |
372 | | -#else |
373 | | - extrw,u \reg1,\start,\length,\reg2 |
374 | | -#endif |
375 | | - .endm |
376 | | - |
377 | | - .macro DEP reg1,start,length,reg2 |
378 | | -#ifdef CONFIG_64BIT |
379 | | - depd \reg1,32+(\start),\length,\reg2 |
380 | | -#else |
381 | | - depw \reg1,\start,\length,\reg2 |
382 | | -#endif |
383 | | - .endm |
384 | | - |
385 | | - .macro DEPI val,start,length,reg |
386 | | -#ifdef CONFIG_64BIT |
387 | | - depdi \val,32+(\start),\length,\reg |
388 | | -#else |
389 | | - depwi \val,\start,\length,\reg |
390 | | -#endif |
391 | | - .endm |
392 | | - |
393 | 367 | /* In LP64, the space contains part of the upper 32 bits of the |
394 | 368 | * fault. We have to extract this and place it in the va, |
395 | 369 | * zeroing the corresponding bits in the space register */ |
|
442 | 416 | */ |
443 | 417 | .macro L2_ptep pmd,pte,index,va,fault |
444 | 418 | #if PT_NLEVELS == 3 |
445 | | - EXTR \va,31-ASM_PMD_SHIFT,ASM_BITS_PER_PMD,\index |
| 419 | + extru \va,31-ASM_PMD_SHIFT,ASM_BITS_PER_PMD,\index |
446 | 420 | #else |
447 | | - EXTR \va,31-ASM_PGDIR_SHIFT,ASM_BITS_PER_PGD,\index |
| 421 | + extru \va,31-ASM_PGDIR_SHIFT,ASM_BITS_PER_PGD,\index |
448 | 422 | #endif |
449 | | - DEP %r0,31,PAGE_SHIFT,\pmd /* clear offset */ |
| 423 | + dep %r0,31,PAGE_SHIFT,\pmd /* clear offset */ |
450 | 424 | copy %r0,\pte |
451 | 425 | ldw,s \index(\pmd),\pmd |
452 | 426 | bb,>=,n \pmd,_PxD_PRESENT_BIT,\fault |
453 | | - DEP %r0,31,PxD_FLAG_SHIFT,\pmd /* clear flags */ |
| 427 | + dep %r0,31,PxD_FLAG_SHIFT,\pmd /* clear flags */ |
454 | 428 | copy \pmd,%r9 |
455 | 429 | SHLREG %r9,PxD_VALUE_SHIFT,\pmd |
456 | | - EXTR \va,31-PAGE_SHIFT,ASM_BITS_PER_PTE,\index |
457 | | - DEP %r0,31,PAGE_SHIFT,\pmd /* clear offset */ |
| 430 | + extru \va,31-PAGE_SHIFT,ASM_BITS_PER_PTE,\index |
| 431 | + dep %r0,31,PAGE_SHIFT,\pmd /* clear offset */ |
458 | 432 | shladd \index,BITS_PER_PTE_ENTRY,\pmd,\pmd |
459 | 433 | LDREG %r0(\pmd),\pte /* pmd is now pte */ |
460 | 434 | bb,>=,n \pte,_PAGE_PRESENT_BIT,\fault |
|
605 | 579 | depdi 0,31,32,\tmp |
606 | 580 | #endif |
607 | 581 | copy \va,\tmp1 |
608 | | - DEPI 0,31,23,\tmp1 |
| 582 | + depi 0,31,23,\tmp1 |
609 | 583 | cmpb,COND(<>),n \tmp,\tmp1,\fault |
610 | 584 | ldi (_PAGE_DIRTY|_PAGE_WRITE|_PAGE_READ),\prot |
611 | 585 | depd,z \prot,8,7,\prot |
|
0 commit comments