Skip to content

Commit 60e22cf

Browse files
committed
xtensa: use ITLB_HIT_BIT instead of hardcoded number
There is ITLB_HIT_BIT macro, no need to use 0x8 to check for TLB hit. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent 5a7ad11 commit 60e22cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/xtensa/kernel/setup.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,9 @@ void cpu_reset(void)
453453
tmpaddr += SZ_512M;
454454

455455
/* Invalidate mapping in the selected temporary area */
456-
if (itlb_probe(tmpaddr) & 0x8)
456+
if (itlb_probe(tmpaddr) & BIT(ITLB_HIT_BIT))
457457
invalidate_itlb_entry(itlb_probe(tmpaddr));
458-
if (itlb_probe(tmpaddr + PAGE_SIZE) & 0x8)
458+
if (itlb_probe(tmpaddr + PAGE_SIZE) & BIT(ITLB_HIT_BIT))
459459
invalidate_itlb_entry(itlb_probe(tmpaddr + PAGE_SIZE));
460460

461461
/*

0 commit comments

Comments
 (0)