Mercurial > flash_v2
comparison packages/hal/arm/sa11x0/assabet/current/src/redboot_cmds.c @ 128:0c2b7be0d798 ecos-sw-2000-10-12
Merge from eCos master repository on 2000-10-12-08:46:24-BST
| author | jlarmour |
|---|---|
| date | Thu, 12 Oct 2000 20:31:43 +0000 |
| parents | 0ec04793409a |
| children | 6b5f480c6929 |
comparison
equal
deleted
inserted
replaced
| 127:67f0ef5f8ee9 | 128:0c2b7be0d798 |
|---|---|
| 98 HAL_DCACHE_SYNC(); | 98 HAL_DCACHE_SYNC(); |
| 99 HAL_ICACHE_INVALIDATE_ALL(); | 99 HAL_ICACHE_INVALIDATE_ALL(); |
| 100 HAL_DCACHE_INVALIDATE_ALL(); | 100 HAL_DCACHE_INVALIDATE_ALL(); |
| 101 ip = (unsigned long *)_prg; | 101 ip = (unsigned long *)_prg; |
| 102 // Not call this code | 102 // Not call this code |
| 103 fun = (code_fun *)(entry + SA11X0_RAM_BANK0_BASE); // Absolute address | 103 fun = (code_fun *)((entry & 0x0FFFFFFF) + SA11X0_RAM_BANK0_BASE); // Absolute address |
| 104 prg = (code_fun *)((unsigned long)ip + SA11X0_RAM_BANK0_BASE); // Absolute address | 104 prg = (code_fun *)((unsigned long)ip + SA11X0_RAM_BANK0_BASE); // Absolute address |
| 105 asm volatile ("mov r5,%0" : : "r"(fun) : "r5"); | 105 asm volatile ("mov r5,%0" : : "r"(fun) : "r5"); |
| 106 asm volatile ("mov r1,%0; mov pc,r1" : : "r"(prg)); | 106 asm volatile ("mov r1,%0; mov pc,r1" : : "r"(prg)); |
| 107 lab1: | 107 lab1: |
| 108 // Tricky code. We are currently running with the MMU on and the | 108 // Tricky code. We are currently running with the MMU on and the |
