Integrate libc and dlmalloc to opteesp and sp environments
Replace newlib with libc and dlmalloc components in the optee and sp
environments and implement required interfaces. Using the libc component
also required the following changes:
* Fix duplicate __maybe_unused in compiler.h
* Change external/tf_a/include/cdefs.h to point to new cdefs.h
* Resolve __packed usage issues
Signed-off-by: Imre Kis <imre.kis@arm.com>
Change-Id: Ie798eb426378529b5d84f1708beebe85cd061fb3
diff --git a/environments/sp/sp_entry.c b/environments/sp/sp_entry.c
index c9b2510..f683646 100644
--- a/environments/sp/sp_entry.c
+++ b/environments/sp/sp_entry.c
@@ -1,12 +1,11 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
- * Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
+ * Copyright (c) 2021-2024, Arm Limited and Contributors. All rights reserved.
*/
#include <stddef.h>
#include <stdint.h>
#include "compiler.h"
-#include "libc_init.h"
#include "sp_api.h"
/*
@@ -24,7 +23,5 @@
(void)a2;
(void)a3;
- libc_init();
-
sp_main((union ffa_boot_info *)a0);
}