Commit Graph

2 Commits

Author SHA1 Message Date
Chenghan Zhou
d4f44d2c50 pw_allocator: replacing malloc()
Add pw_malloc module to replace libc malloc with self defined methods.

Add pw_malloc_freelist backend to provide wrapper functions for freelist
malloc.

Change-Id: I7b645206655068d6c08063d7a520aca62d955052
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/12601
Commit-Queue: Chenghan Zhou <chenghanzh@google.com>
Reviewed-by: Chenghan Zhou <chenghanzh@google.com>
Reviewed-by: Alexei Frolov <frolv@google.com>
2020-07-17 18:14:27 +00:00
Armando Montanez
ec9dd67691 pw_boot_armv7m: Add pw_PreStaticConstructorInit()
Adds pw_PreStaticConstructorInit() to allow ARMv7-M targets that use
pw_boot to perform initialization before C++ static constructors are
run. Updates stm32f429i-disc1 to enable FPU before static constructors
so static constructors can safely perform FPU operations if necessary.

Change-Id: I66cfa82096719f59c42c84e4bafd0e1740002e09
2020-06-08 18:59:59 +00:00