Ignore:
Timestamp:
2013-08-07T18:38:44Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ae5fb7c8
Parents:
8ff767b
Message:

arm32: Fix pagetables in cacheable memory.

Set memory attributes in TTBR0/1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/arch/mm/page_armv4.h

    r8ff767b r0c40fd5  
    120120#define PTE_DESCRIPTOR_SMALL_PAGE       2
    121121
    122 #define pt_coherence_m(page, count)
     122#define pt_coherence_m(pt, count) \
     123do { \
     124        for (unsigned i = 0; i < count; ++i) \
     125                DCCMVAU_write((uintptr_t)(pt + i)); \
     126        read_barrier(); \
     127} while (0)
    123128
    124129/** Returns level 0 page table entry flags.
Note: See TracChangeset for help on using the changeset viewer.