Changeset 186b919 in mainline


Ignore:
Timestamp:
2013-08-04T10:30:54Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8abcf4e
Parents:
67d02bb
Message:

armv6+: Add explanatory comments to paging attributes.

File:
1 edited

Legend:

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

    r67d02bb r186b919  
    233233                        p->descriptor_type = PTE_DESCRIPTOR_SMALL_PAGE_NX;
    234234        }
    235        
    236         /* tex=0 buf=1 and cache=1 => normal memory
    237          * tex=0 buf=1 and cache=0 => shareable device mmio
    238          */
    239235
    240236        if (flags & PAGE_CACHEABLE) {
     237                /*
     238                 * Write-back, write-allocate memory, see ch. B3.8.2
     239                 * (p. B3-1358) of ARM Architecture reference manual.
     240                 */
    241241                p->tex = 1;
    242242                p->cacheable = 1;
     243                p->bufferable = 1;
    243244        } else {
     245                /*
     246                 * Shareable device memory, see ch. B3.8.2 (p. B3-1358) of
     247                 * ARM Architecture reference manual.
     248                 */
    244249                p->tex = 0;
    245250                p->cacheable = 0;
     251                p->bufferable = 1;
    246252        }
    247         p->bufferable = 1;
    248253       
    249254        /* Shareable is ignored for devices (non-cacheable),
    250          * turn it on for normal memory. */
     255         * turn it off for normal memory. */
    251256        p->shareable = 0;
    252257       
Note: See TracChangeset for help on using the changeset viewer.