Skip to content

Commit

Permalink
xtensa: use ITLB_HIT_BIT instead of hardcoded number
Browse files Browse the repository at this point in the history
There is ITLB_HIT_BIT macro, no need to use 0x8 to check for TLB hit.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
  • Loading branch information
Max Filippov committed Apr 28, 2017
1 parent 5a7ad11 commit 60e22cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/xtensa/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

/*
Expand Down

0 comments on commit 60e22cf

Please sign in to comment.