Mercurial > flash_v2
comparison packages/devs/flash/intel/bootblock/current/src/bootblock_flash.c @ 143:6b5f480c6929 ecos-sw-2000-12-08
Merge from eCos master repository on 2000-12-08-02:09:36-GMT
| author | jlarmour |
|---|---|
| date | Fri, 08 Dec 2000 03:30:06 +0000 |
| parents | 289bf90c6a9b |
| children | 2395031e7a66 |
comparison
equal
deleted
inserted
replaced
| 142:12eccf9656f3 | 143:6b5f480c6929 |
|---|---|
| 135 | 135 |
| 136 // See if a range of FLASH addresses overlaps currently running code | 136 // See if a range of FLASH addresses overlaps currently running code |
| 137 bool | 137 bool |
| 138 flash_code_overlaps(void *start, void *end) | 138 flash_code_overlaps(void *start, void *end) |
| 139 { | 139 { |
| 140 extern char _stext, _etext; | 140 extern char _stext[], _etext[]; |
| 141 | 141 |
| 142 return ((((unsigned long)&_stext >= (unsigned long)start) && | 142 return ((((unsigned long)&_stext >= (unsigned long)start) && |
| 143 ((unsigned long)&_stext < (unsigned long)end)) || | 143 ((unsigned long)&_stext < (unsigned long)end)) || |
| 144 (((unsigned long)&_etext >= (unsigned long)start) && | 144 (((unsigned long)&_etext >= (unsigned long)start) && |
| 145 ((unsigned long)&_etext < (unsigned long)end))); | 145 ((unsigned long)&_etext < (unsigned long)end))); |
