arm64: add malloc support to secmon
In order to dynamically allocate structures based on affinity levels add malloc() support. BUG=chrome-os-partner:32136 BRANCH=None TEST=Built and booted to kernel. Change-Id: Ie1412a3a9eb07689059a2cd69bd111274bcb88fa Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/226482 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
d091706f64
commit
9cd2b23c2e
2 changed files with 2 additions and 1 deletions
|
|
@ -147,6 +147,7 @@ rmodules_arm64-y += ../../lib/memmove.c
|
|||
rmodules_arm64-y += eabi_compat.c
|
||||
|
||||
secmon-$(CONFIG_ARCH_USE_SECURE_MONITOR) += stage_entry.S
|
||||
secmon-$(CONFIG_ARCH_USE_SECURE_MONITOR) += ../../lib/malloc.c
|
||||
secmon-$(CONFIG_ARCH_USE_SECURE_MONITOR) += ../../lib/memset.c
|
||||
secmon-$(CONFIG_ARCH_USE_SECURE_MONITOR) += ../../lib/memcmp.c
|
||||
secmon-$(CONFIG_ARCH_USE_SECURE_MONITOR) += ../../lib/memcpy.c
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ secmon-y += ../../transition_asm.S ../../transition.c
|
|||
|
||||
ramstage-objs += $(SECMON_RAMSTAGE)
|
||||
|
||||
$(eval $(call rmodule_link,$(SECMON_ELF), $$$$(secmon-objs), 0,arm64))
|
||||
$(eval $(call rmodule_link,$(SECMON_ELF), $$$$(secmon-objs),8192,arm64))
|
||||
|
||||
$(SECMON_BIN): $(SECMON_RMOD)
|
||||
$(OBJCOPY_secmon) -O binary $< $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue