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: I40cbd8497a1599db12b9e87eeb379f7dcd21c9b0 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: 9cd2b23c2ea045b5832b3d838e29f4b6a1b6cdfb Original-Change-Id: Ie1412a3a9eb07689059a2cd69bd111274bcb88fa Original-Signed-off-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/226482 Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/9389 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
parent
03c657f288
commit
7d62ad05fb
|
@ -157,6 +157,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
|
||||
|
|
|
@ -43,7 +43,7 @@ ramstage-srcs += $(SECMON_RAMSTAGE)
|
|||
$(SECMON_OBJ): $$(secmon-objs)
|
||||
$(CC_secmon) $(LDFLAGS) -nostdlib -r -o $@ $^
|
||||
|
||||
$(eval $(call rmodule_link,$(SECMON_ELF), $(SECMON_OBJ), 0,arm64))
|
||||
$(eval $(call rmodule_link,$(SECMON_ELF), $(SECMON_OBJ), 8192,arm64))
|
||||
|
||||
$(SECMON_BIN): $(SECMON_RMOD)
|
||||
$(OBJCOPY_secmon) -O binary $< $@
|
||||
|
|
Loading…
Reference in New Issue