>From 3ef4cc07ce5900c699767bb112bfed4ffdafef9f Mon Sep 17 00:00:00 2001
From: Spencer Oliver <[email protected]>
Date: Mon, 8 Mar 2010 20:30:53 +0000
Subject: [PATCH 1/4] ADUC702x: flash loader cleanup

 - make algorithm array static const.

Signed-off-by: Spencer Oliver <[email protected]>
---
 src/flash/nor/aduc702x.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/flash/nor/aduc702x.c b/src/flash/nor/aduc702x.c
index 7e81b32..88072b9 100644
--- a/src/flash/nor/aduc702x.c
+++ b/src/flash/nor/aduc702x.c
@@ -188,7 +188,7 @@ static int aduc702x_write_block(struct flash_bank *bank, 
uint8_t *buffer, uint32
         r6 - set to 2, used to write flash command
 
         */
-        uint32_t aduc702x_flash_write_code[] = {
+        static const uint32_t aduc702x_flash_write_code[] = {
         //<_start>:
                 0xe3a05008,    // mov  r5, #8  ; 0x8
                 0xe5845004,    // str  r5, [r4, #4]
-- 
1.6.6.1

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to