aboutsummaryrefslogtreecommitdiffstats
path: root/src/generic/armcm_boot.c
Commit message (Collapse)AuthorAgeFilesLines
* armcm_boot: Support ARM cortex-m33 chipsKevin O'Connor2024-11-131-1/+6
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_boot: Avoid invoking functions in reset_handler_stage_two()Kevin O'Connor2024-01-251-4/+28
| | | | | | | | | | Avoid calling memset() and memcpy() prior to copying the ram and clearing the bss. Also, place both ResetHandler() and reset_handler_stage_two() in an explicit ".text.armcm_boot" linker section. These changes make it easier to support targets that want to run all code in ram. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armc_boot: Support cortex-m7 chipsD4SK2021-10-061-0/+5
| | | | | Signed-off-by: Konstantin Vogel <konstantin.vogel@gmx.net> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_boot: Improve ARM Cortex-M control transfer from bootloaders (#4024)Matt Baker2021-03-091-8/+39
| | | Signed-off-by: Matt Baker <baker.matt.j@gmail.com>
* armcm_boot: Additional code for broken bootloadersclearchris2020-03-041-0/+9
| | | | | | | | Explicitly disable the SysTick interrupt and explicitly set the stack pointer, as some bootloaders aren't handling this correctly. Signed-off-by: Chris Lombardi <clearchris@hotmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_boot: Use armcm_main() instead of main() to start board codeKevin O'Connor2019-10-241-8/+4
| | | | | | | | | | The main() function has a special meaning to gcc and using it can result in different code generation. Use armcm_main() to avoid that. Also, invoke SystemInit() from the board specific armcm_main() code. This gives the board code more control over board initialization. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_boot: Export MCU definition from armcm_bootKevin O'Connor2019-09-181-0/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_link: Rename armcm_boot.lds.S to armcm_link.lds.SKevin O'Connor2019-08-221-1/+1
| | | | | | | Rename the linker script so the build does not have any conflicts with the armcm_boot.d dependency file. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* armcm_boot: Add generic code for early board init on armcm machinesKevin O'Connor2019-08-221-0/+73
Add basic ARM Cortex-M C init code and build linker scripts to src/generic/ code. This can be used to simplify the various ARM board code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>