[Linux-Xtensa] [PATCH] xtensa: use ITLB_HIT_BIT instead of hardcoded number
Max Filippov
jcmvbkbc at gmail.com
Thu Mar 30 18:02:24 UTC 2017
There is ITLB_HIT_BIT macro, no need to use 0x8 to check for TLB hit.
Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
---
arch/xtensa/kernel/setup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c
index 197e75b..fd33920 100644
--- a/arch/xtensa/kernel/setup.c
+++ b/arch/xtensa/kernel/setup.c
@@ -453,9 +453,9 @@ void cpu_reset(void)
tmpaddr += SZ_512M;
/* Invalidate mapping in the selected temporary area */
- if (itlb_probe(tmpaddr) & 0x8)
+ if (itlb_probe(tmpaddr) & BIT(ITLB_HIT_BIT))
invalidate_itlb_entry(itlb_probe(tmpaddr));
- if (itlb_probe(tmpaddr + PAGE_SIZE) & 0x8)
+ if (itlb_probe(tmpaddr + PAGE_SIZE) & BIT(ITLB_HIT_BIT))
invalidate_itlb_entry(itlb_probe(tmpaddr + PAGE_SIZE));
/*
--
2.1.4
More information about the linux-xtensa
mailing list