comparison packages/hal/arm/edb7xxx/current/misc/prog_flash.c @ 66:bf00f99aec69 ecos-sw-2000-02-02

Merge from eCos master repository on 2000-02-02-19:16:44-GMT
author jlarmour
date Wed, 02 Feb 2000 19:57:02 +0000
parents c38311975d4f
children e0c0827131d1
comparison
equal deleted inserted replaced
65:b4822dd69c33 66:bf00f99aec69
7 //========================================================================== 7 //==========================================================================
8 //####COPYRIGHTBEGIN#### 8 //####COPYRIGHTBEGIN####
9 // 9 //
10 // ------------------------------------------- 10 // -------------------------------------------
11 // The contents of this file are subject to the Red Hat eCos Public License 11 // The contents of this file are subject to the Red Hat eCos Public License
12 // Version 1.0 (the "License"); you may not use this file except in 12 // Version 1.1 (the "License"); you may not use this file except in
13 // compliance with the License. You may obtain a copy of the License at 13 // compliance with the License. You may obtain a copy of the License at
14 // http://sourceware.cygnus.com/ecos 14 // http://www.redhat.com/
15 // 15 //
16 // Software distributed under the License is distributed on an 16 // Software distributed under the License is distributed on an "AS IS"
17 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 17 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
18 // License for the specific language governing rights and limitations under 18 // License for the specific language governing rights and limitations under
19 // the License. 19 // the License.
20 // 20 //
21 // The Original Code is eCos - Embedded Configurable Operating System, 21 // The Original Code is eCos - Embedded Configurable Operating System,
111 { 111 {
112 while (TRUE) ; 112 while (TRUE) ;
113 } 113 }
114 114
115 static void 115 static void
116 program_flash(void) 116 program_flash(cyg_addrword_t arg)
117 { 117 {
118 diag_printf("PROGRAM FLASH here!\n"); 118 diag_printf("PROGRAM FLASH here!\n");
119 HAL_UCACHE_SYNC(); // ROM space is marked cacheable which causes problems! 119 HAL_UCACHE_SYNC(); // ROM space is marked cacheable which causes problems!
120 HAL_UCACHE_DISABLE(); // So, just disable caches. 120 HAL_UCACHE_DISABLE(); // So, just disable caches.
121 identify_FLASH(); 121 identify_FLASH();