/* ----------------------------------------------------------------------------\r
- * SAM Software Package License \r
+ * SAM Software Package License\r
* ----------------------------------------------------------------------------\r
* Copyright (c) 2012, Atmel Corporation\r
*\r
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
* ----------------------------------------------------------------------------\r
*/\r
- \r
+\r
\r
/** \file */\r
\r
\r
/** \file */\r
-/** \r
+/**\r
* \addtogroup cp15_cache Cache Operations\r
*\r
* \section Usage\r
*\r
- * They are performed as MCR instructions and only operate on a level 1 cache associated with \r
+ * They are performed as MCR instructions and only operate on a level 1 cache associated with\r
* ATM v7 processor.\r
* The supported operations are:\r
* <ul>\r
* \ref cp15.h\n\r
* \ref cp15_arm_iar.s \n\r
*/\r
- \r
+\r
\r
MODULE ?cp15\r
\r
/*----------------------------------------------------------------------------\r
* Headers\r
*----------------------------------------------------------------------------*/\r
-#define __ASSEMBLY__\r
\r
\r
/*----------------------------------------------------------------------------\r
PUBLIC CP15_flush_dcache_for_dma\r
PUBLIC CP15_flush_kern_dcache_for_dma\r
\r
-/** \r
+/**\r
* \brief Register c0 accesses the ID Register, Cache Type Register, and TCM Status Registers.\r
* Reading from this register returns the device ID, the cache type, or the TCM status\r
- * depending on the value of Opcode_2 used. \r
+ * depending on the value of Opcode_2 used.\r
*/\r
SECTION .CP15_ReadID:DATA:NOROOT(2)\r
PUBLIC CP15_ReadID\r
mrc p15, 0, r0, c0, c0, 0\r
bx lr\r
\r
-/** \r
+/**\r
* \brief Register c1 is the Control Register for the ARM926EJ-S processor.\r
* This register specifies the configuration used to enable and disable the\r
* caches and MMU. It is recommended that you access this register using a\r
PUBLIC CP15_ReadControl\r
CP15_ReadControl:\r
mov r0, #0\r
- mrc p15, 0, r0, c1, c0, 0 \r
+ mrc p15, 0, r0, c1, c0, 0\r
bx lr\r
\r
SECTION .CP15_WriteControl:CODE:NOROOT(2)\r
nop\r
nop\r
bx lr\r
- \r
-/** \r
+\r
+/**\r
* \brief ARMv7A architecture supports two translation tables\r
* Configure translation table base (TTB) control register cp15,c2\r
* to a value of all zeros, indicates we are using TTB register 0.\r
bx lr\r
\r
/**\r
- * \brief Clean unified cache line by MVA \r
+ * \brief Clean unified cache line by MVA\r
*/\r
SECTION .CP15_CleanDCacheMva:CODE:NOROOT(2)\r
PUBLIC CP15_CleanDCacheMva\r
PUBLIC CP15_CleanInvalidateDcacheLineByMva\r
CP15_CleanInvalidateDcacheLineByMva:\r
mov r0, #0\r
- mcr p15, 0, r0, c7, c14, 1 \r
+ mcr p15, 0, r0, c7, c14, 1\r
bx lr\r
\r
/**\r
PUBLIC CP15_coherent_dcache_for_dma\r
CP15_coherent_dcache_for_dma:\r
// dcache_line_size r2, r3\r
- \r
+\r
mrc p15, 0, r3, c0, c0, 1 // read ctr\r
lsr r3, r3, #16\r
and r3, r3, #0xf // cache line size encoding\r