]> git.sur5r.net Git - openocd/commitdiff
src: add loader src description
authorSpencer Oliver <ntfreak@users.sourceforge.net>
Thu, 28 Oct 2010 09:08:16 +0000 (10:08 +0100)
committerSpencer Oliver <ntfreak@users.sourceforge.net>
Thu, 28 Oct 2010 09:08:16 +0000 (10:08 +0100)
 - add comment where to find the various loaders src files.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
src/flash/nor/pic32mx.c
src/flash/nor/stellaris.c
src/flash/nor/stm32x.c
src/flash/nor/str7x.c
src/flash/nor/str9x.c
src/target/armv4_5.c
src/target/armv7m.c
src/target/mips32.c

index 363f49e84a84f670643cd91fc7b588ce7b8274b3..6e51f1aa2d0e2c631f1477b141f9b3011d15dcbf 100644 (file)
@@ -227,6 +227,8 @@ static int pic32mx_protect(struct flash_bank *bank, int set, int first, int last
        return ERROR_OK;
 }
 
+/* see contib/loaders/flash/pic32mx.s for src */
+
 static const uint32_t pic32mx_flash_write_code[] = {
                                        /* write: */
        0x3C08AA99,             /* lui $t0, 0xaa99 */
index 287be12d7021ee20974fe208c512ca37a433e2b2..069ee8c1c111a86722b11ca7b82519934c598c47 100644 (file)
@@ -773,6 +773,8 @@ static int stellaris_protect(struct flash_bank *bank, int set, int first, int la
        return ERROR_OK;
 }
 
+/* see contib/loaders/flash/stellaris.s for src */
+
 static const uint8_t stellaris_write_code[] =
 {
 /*
index 4ec777dd8270393f86ea577a76e27f2d91e4076c..5b31b0421a8dbcf8b02d160aad0a9431fee6dad4 100644 (file)
@@ -446,6 +446,8 @@ static int stm32x_write_block(struct flash_bank *bank, uint8_t *buffer,
        struct armv7m_algorithm armv7m_info;
        int retval = ERROR_OK;
 
+       /* see contib/loaders/flash/stm32x.s for src */
+
        static const uint8_t stm32x_flash_write_code[] = {
                                                                        /* write: */
                0xDF, 0xF8, 0x24, 0x40,         /* ldr  r4, STM32_FLASH_CR */
@@ -462,6 +464,7 @@ static int stm32x_write_block(struct flash_bank *bank, uint8_t *buffer,
                0x01, 0xD1,                                     /* bne  exit */
                0x01, 0x3A,                                     /* subs r2, r2, #1 */
                0xED, 0xD1,                                     /* bne  write */
+                                                                       /* exit: */
                0x00, 0xBE,                             /* bkpt #0 */
                0x10, 0x20, 0x02, 0x40,         /* STM32_FLASH_CR:      .word 0x40022010 */
                0x0C, 0x20, 0x02, 0x40          /* STM32_FLASH_SR:      .word 0x4002200C */
index 069e90c2e4ca3bec91c8a40e51a8f0bbc324b32f..3a74d3538b7c422d56aa5ec386abe606c6e86d0b 100644 (file)
@@ -406,6 +406,8 @@ static int str7x_write_block(struct flash_bank *bank, uint8_t *buffer,
        struct arm_algorithm armv4_5_info;
        int retval = ERROR_OK;
 
+       /* see contib/loaders/flash/str7x.s for src */
+
        static const uint32_t str7x_flash_write_code[] = {
                                        /* write:                               */
                0xe3a04201, /*  mov r4, #0x10000000     */
index cfe6a77709866742d622d0d4c2401c6637e570c0..1e71753e67edc5110100dc6af989ba438886b79a 100644 (file)
@@ -364,6 +364,8 @@ static int str9x_write_block(struct flash_bank *bank,
        struct arm_algorithm armv4_5_info;
        int retval = ERROR_OK;
 
+       /* see contib/loaders/flash/str9x.s for src */
+
        static const uint32_t str9x_flash_write_code[] = {
                                        /* write:                               */
                0xe3c14003,     /*      bic     r4, r1, #3              */
index 07c8c6ebc9becedbad81fc5f62a3081f1fe38bba..ac7f6236ed5824ca578783349bf2b021efc88625 100644 (file)
@@ -1307,6 +1307,8 @@ int arm_checksum_memory(struct target *target,
        uint32_t i;
        uint32_t exit_var = 0;
 
+       /* see contib/loaders/checksum/armv4_5_crc.s for src */
+
        static const uint32_t arm_crc_code[] = {
                0xE1A02000,             /* mov          r2, r0 */
                0xE3E00000,             /* mov          r0, #0xffffffff */
index a73a9bb45b71c0d0207d0120ca88890c60b7c840..03c9c7ace8812bd467ef9c98d3ed21c4be231a78 100644 (file)
@@ -562,6 +562,8 @@ int armv7m_checksum_memory(struct target *target,
        struct reg_param reg_params[2];
        int retval;
 
+       /* see contib/loaders/checksum/armv7m_crc.s for src */
+
        static const uint16_t cortex_m3_crc_code[] = {
                0x4602,                                 /* mov  r2, r0 */
                0xF04F, 0x30FF,                 /* mov  r0, #0xffffffff */
index 24cd7d954a973d2743da415c4e2f7b6ea09fb721..533701aaafde0e35f9c0053d34c6be7842e43920 100644 (file)
@@ -613,6 +613,8 @@ int mips32_checksum_memory(struct target *target, uint32_t address,
        int retval;
        uint32_t i;
 
+       /* see contib/loaders/checksum/mips32.s for src */
+
        static const uint32_t mips_crc_code[] =
        {
                0x248C0000,             /* addiu        $t4, $a0, 0 */