Modified vector table structure, fixed #1.

Signed-off-by: imi415 <imi415.public@gmail.com>
This commit is contained in:
imi415 2022-09-07 23:25:30 +08:00
parent d41fcf306f
commit 1a9cbabb96
Signed by: imi415
GPG Key ID: 17F01E106F9F5E0A
2 changed files with 9 additions and 7 deletions

View File

@ -13,8 +13,9 @@ This bootloader will:
| Offset | Content |
|-|-|
| 0x00 | end address of loadable sections |
| 0x04 | entry point |
| 0x00 | start address of target memory region |
| 0x04 | end address of loadable sections |
| 0x08 | entry point |
## Project status
TODO

View File

@ -119,8 +119,9 @@ _go_non_privileged:
_copy_app:
mov.l _app_copy_end_k, r0 /* App load location, in EMI */
mov.l @r0, r1 /* Offset 0, eidata */
mov.l _app_base_k, r2 /* App execute location, start of LMI RAM */
mov.l @r0, r1 /* Offset 0x04, eidata */
mov.l _app_base_k, r0 /* App base location, in LMI */
mov.l @r0, r2 /* Offset 0x00, stext */
_loop_copy_app:
mov.l @r0+, r3
@ -252,8 +253,8 @@ _init_ram_k:
.long _memory_setup_init_ram
_app_base_k:
.long 0x80000000U /* App to be copied to */
.long 0xA0000000U /* stext */
_app_copy_end_k:
.long 0xA0008000U /* eiaddr */
.long 0xA0008004U /* eiaddr */
_app_entry_k:
.long 0xA0008004U
.long 0xA0008008U /* entry */