Commit Graph

3 Commits

Author SHA1 Message Date
Ewout van Bekkum
712cbfb017 lm3s6965evb-qemu: move early_boot into targets/*
Updates targets/lm3s6965evb-qemu/* and its sys_io counterpart to
match targets/stm32f429i-disc1/* by moving the early boot and
vector tables out of sys_io.

Change-Id: If1f82d5bd242807d9c4914d207b7f332291de8cf
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/16700
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
2020-08-25 21:07:13 +00:00
Ewout van Bekkum
fff82ec721 pw_boot_armv7m: add pw_boot_PreStaticMemoryInit()
Adds a new hook before static memory initialization occurs, namely
initialization of .bss and .data, which is frequently used for
things like enabling other memory regions with .data and/or .bss
sections.

The FPU enabling for targets/stm32f429i-disc1/early_boot.c was moved
to pw_boot_PreStaticMemoryInit(), as this is may be needed for
other pre static memory initialization tasks.

In addition, the existing pw_boot_armv7m module is updated to follow
the new naming style guide to prefix globals with "pw_boot_*".

And lastly, the documentation is extended slightly to further explain
what each hook is typically used for.

Change-Id: Ic85e960a476c906b5fe781b87bb4cedd06982e60
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/16562
Reviewed-by: Armando Montanez <amontanez@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Commit-Queue: Ewout van Bekkum <ewout@google.com>
2020-08-24 20:59:17 +00:00
Chenghan Zhou
6e9924a77d stm32f429i target: early_boot.c refactor
Change-Id: Id7c03621a1bfe1fd3fdb6b6e8bfbd71703edbabd
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/14261
Reviewed-by: Alexei Frolov <frolv@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Chenghan Zhou <chenghanzh@google.com>
2020-07-23 15:40:00 +00:00