projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parisc: use constants instead of numbers in assembly
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
arch
/
parisc
/
kernel
/
entry.S
diff --git
a/arch/parisc/kernel/entry.S
b/arch/parisc/kernel/entry.S
index
0db9fdc
..
0f7ff93
100644
(file)
--- a/
arch/parisc/kernel/entry.S
+++ b/
arch/parisc/kernel/entry.S
@@
-563,8
+563,8
@@
/* Get rid of prot bits and convert to page addr for iitlba */
/* Get rid of prot bits and convert to page addr for iitlba */
- depi
_PAGE_SIZE_ENCODING_DEFAULT
,31,ASM_PFN_PTE_SHIFT,\pte
-
extru \pte,24,25
,\pte
+ depi
0
,31,ASM_PFN_PTE_SHIFT,\pte
+
SHRREG \pte,(ASM_PFN_PTE_SHIFT-(31-26))
,\pte
.endm
/* This is for ILP32 PA2.0 only. The TLB insertion needs
.endm
/* This is for ILP32 PA2.0 only. The TLB insertion needs
@@
-1337,8
+1337,8
@@
nadtlb_check_flush_11:
/* Get rid of prot bits and convert to page addr for idtlba */
/* Get rid of prot bits and convert to page addr for idtlba */
- depi 0,31,
12
,pte
-
extru pte,24,25
,pte
+ depi 0,31,
ASM_PFN_PTE_SHIFT
,pte
+
SHRREG pte,(ASM_PFN_PTE_SHIFT-(31-26))
,pte
mfsp %sr1,t0 /* Save sr1 so we can use it in tlb inserts */
mtsp spc,%sr1
mfsp %sr1,t0 /* Save sr1 so we can use it in tlb inserts */
mtsp spc,%sr1