Skip to content

Commit

Permalink
Undo Strong Order
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Nov 26, 2023
1 parent 8ff5d70 commit 0b846f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/risc-v/src/common/riscv_mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ void mmu_ln_setentry(uint32_t ptlevel, uintptr_t lnvaddr, uintptr_t paddr,
/* Save it */

lntable[index] = (paddr | mmuflags);
#ifdef NOTUSED
////Begin
if ((mmuflags & PTE_R) && (vaddr & 0xe0000000))
{
Expand All @@ -109,6 +110,7 @@ void mmu_ln_setentry(uint32_t ptlevel, uintptr_t lnvaddr, uintptr_t paddr,
// DEBUGASSERT(lntable[index] & (1UL << 63));////TODO: Extend mmuflags to uint64_t
}
////End
#endif // NOTUSED

/* Update with memory by flushing the cache(s) */

Expand Down

0 comments on commit 0b846f2

Please sign in to comment.