diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-10-24 11:07:52 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-10-24 11:16:10 -0400 |
commit | faeaa54925e0a6fa197c48faf6317a86824f64d7 (patch) | |
tree | e8679d9af4998068d5fc721c0fc9d2f1e55145f4 /src/generic/armcm_boot.h | |
parent | 632ff9e55adced3f055b0926a32cff0b53a7bd0e (diff) | |
download | kutter-faeaa54925e0a6fa197c48faf6317a86824f64d7.tar.gz kutter-faeaa54925e0a6fa197c48faf6317a86824f64d7.tar.xz kutter-faeaa54925e0a6fa197c48faf6317a86824f64d7.zip |
armcm_boot: Use armcm_main() instead of main() to start board code
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>
Diffstat (limited to 'src/generic/armcm_boot.h')
-rw-r--r-- | src/generic/armcm_boot.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/generic/armcm_boot.h b/src/generic/armcm_boot.h index a0bfd3f4..7bd982ce 100644 --- a/src/generic/armcm_boot.h +++ b/src/generic/armcm_boot.h @@ -3,6 +3,8 @@ #include "ctr.h" // DECL_CTR_INT +void armcm_main(void); + // Declare an IRQ handler #define DECL_ARMCM_IRQ(FUNC, NUM) \ DECL_CTR_INT("DECL_ARMCM_IRQ " __stringify(FUNC), 1, CTR_INT(NUM)) |