Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/cpu/cpu.c

    r7c3fb9b rae7d03c  
    147147        /* Unaligned access is supported on armv6+ */
    148148#if defined(PROCESSOR_ARCH_armv7_a) | defined(PROCESSOR_ARCH_armv6)
    149         /*
    150          * Enable unaligned access, RAZ/WI prior to armv6
     149        /* Enable unaligned access, RAZ/WI prior to armv6
    151150         * switchable on armv6, RAO/WI writes on armv7,
    152151         * see ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition
    153          * L.3.1 (p. 2456)
    154          */
     152         * L.3.1 (p. 2456) */
    155153        control_reg |= SCTLR_UNALIGNED_EN_FLAG;
    156         /*
    157          * Disable alignment checks, this turns unaligned access to undefined,
    158          * unless U bit is set.
    159          */
     154        /* Disable alignment checks, this turns unaligned access to undefined,
     155         * unless U bit is set. */
    160156        control_reg &= ~SCTLR_ALIGN_CHECK_EN_FLAG;
    161         /*
    162          * Enable caching, On arm prior to armv7 there is only one level
     157        /* Enable caching, On arm prior to armv7 there is only one level
    163158         * of caches. Data cache is coherent.
    164159         * "This means that the behavior of accesses from the same observer to
     
    174169#endif
    175170#ifdef PROCESSOR_ARCH_armv7_a
    176         /*
    177          * ICache coherency is elaborated on in barrier.h.
     171        /* ICache coherency is elaborated on in barrier.h.
    178172         * VIPT and PIPT caches need maintenance only on code modify,
    179173         * so it should be safe for general use.
Note: See TracChangeset for help on using the changeset viewer.