- Mar 03, 2023
-
-
Gilles Peskine authored
Signed-off-by:
Gilles Peskine <Gilles.Peskine@arm.com> Change-Id: Ia62b977d5f1893bfe82989983b4887dad327d7d2
-
- Mar 02, 2023
-
-
Summer Qin authored
Remove redundant namespace 'PARTITION' to make it shorter. And updated the flags bit assignment explanation comments for easier understanding. Signed-off-by:
Summer Qin <summer.qin@arm.com> Change-Id: I218e08b945309017f07e2e595a3c684e00be4bdf
-
Ken Liu authored
For unified referencing and clearly showcasing SPM required memory symbols. Memory symbols can come from linker sections, or be defined in sources with toolchain-specific attributes. Signed-off-by:
Ken Liu <Ken.Liu@arm.com> Change-Id: I920329ad08c9515e370653a9c5d663f3970b7395
-
David Hu authored
Change-Id: I86ff01413c4191ae87f9d8353a5aff72485a7117 Signed-off-by:
David Hu <david.hu@arm.com>
-
David Hu authored
Update configuration docs to align with changes which decouples option configuration and validation in config header files. Convert header file config system diagrams in svg format It is difficult to modify existing figures in header_file_system.rst and kconfig_header_file_system.rst. Re-draw those figures in svg format and enable developers to more easily update the diagram. Change-Id: If88a6a07104ef54de127ccb9149c5ff4792b3cdd Signed-off-by:
David Hu <david.hu@arm.com>
-
David Hu authored
Option settings and checks are mixed in config_<component>.h. config_<component>.h is then included by other components outside the current one. Those checks often depends on build options managed in CMake/Kconfig config. Many of these build options are transparent to other components. For example, if a <component> specific build option is transparent to NSPE, when NS is built separatedly from TF-M secure side, this build option is missing in NS build and then the corresponding checks in config_<component>.h will fail the build. Decouple option settings and checks to solve the issue above. - Add #ifndef/#endif pairs in config_base.h to collect all the base option settings. - Let config_tfm.h include config_base.h. It becomes the common config header file to be included by all components. - Only keep invalid config check in config_<component>.h. Renamed config_<component>.h as config_<component>_check.h. Users shall explicitly set config values in PROJECT_CONFIG_HEADER_FILE rather than relying on components to implicitly set default values. - config_<component>_check.h is only included by <component> for check only. Change-Id: I8e447a41dee515be53f8c7458f4ada3a965ad566 Signed-off-by:
David Hu <david.hu@arm.com>
-
BohdanHunko authored
rt_main is an unnecessary layer that can be removed. Instead partition entry point function can be called directly. This simplifies the code and enables passing a parameter to the thread using register r0. Previously passing parameter using r0 was impossible because rt_main used r0. Change-Id: I5e0d5278867d26bc79b39a8594c3d6ef0eb1e56d Signed-off-by:
Bohdan Hunko <Bohdan.Hunko@infineon.com> Signed-off-by:
Chris Brand <chris.brand@cypress.com>
-
Sherry Zhang authored
Signed-off-by:
Sherry Zhang <sherry.zhang2@arm.com> Change-Id: I88cbac33905545784039ec62c2663402ca382c28
-
Mohamed Omar Asaker authored
Create the corstone1000 flash image with the gpt layout via a script The script uses dd command to create the disk image and uses the sgdisk tool to write the gpt layout dd is used again to write binaries to the disk image Signed-off-by:
Mohamed Omar Asaker <mohamed.omarasaker@arm.com> Change-Id: I38c34f27c1bad1d450ca54b4fffd24a66ccd4746
-
Mohamed Omar Asaker authored
Complete the simplification of the flash layout. The flash layout contains only the static definitions that describe the static layout and the boundries of the dynamic regions. The dynamic regions addresses are known by the GPT parser. Signed-off-by:
Mohamed Omar Asaker <mohamed.omarasaker@arm.com> Change-Id: I2bbbd2ff64962b906ec723ffcd082ac1cc92d769
-
Mohamed Omar Asaker authored
Adabt BL2 to use GPT parser find tfm and fip partitions, and then extract info to populate MCUBOOT flashmap. Side changes required: Borrow 2k of BL2 code memory to Data memory (during linking) i.e. Increase BL2_DATA_GAP_SIZE and decrease SE_BL2_PARTITION_SIZE Signed-off-by:
Mohamed Omar Asaker <mohamed.omarasaker@arm.com> Change-Id: I62bdabaf13510d4a63d95643831ec5f48c9ca906
-
Mohamed Omar Asaker authored
The commit prepares BL1 to adapt to new GPT-based flash layout. BL1 does not incorporate a GPT parser and still uses a static configuration to understand the flash. The flash_layout.h is also modified/marked in a way to start the process of its simplification. Signed-off-by:
Satish Kumar <satish.kumar01@arm.com> Signed-off-by:
Mohamed Omar Asaker <mohamed.omarasaker@arm.com> Change-Id: Ie33803dff9f2729e45ee3b72f694a9929a4395d6
-
- Mar 01, 2023
-
-
Jamie Fox authored
Removes the Strata flash driver from RSS and uses the Arm common one instead. Signed-off-by:
Jamie Fox <jamie.fox@arm.com> Change-Id: I30269df3d08bb96b9fc95140549bdb9b360fbbab
-
Jamie Fox authored
Removes the RSS CMSDK UART driver and uses the common Arm one instead. Also propagates a small fix from the RSS CMSDK UART driver to the Arm one. Signed-off-by:
Jamie Fox <jamie.fox@arm.com> Change-Id: Ifc4fc28aeeed35d47ee4acc1201fdaa742eef6f1
-
Jamie Fox authored
Replaces RSS MPC drivers with the common Arm implementations. Signed-off-by:
Jamie Fox <jamie.fox@arm.com> Change-Id: I339f7b8bf6d26ff8f7fb1733f3727f95eb31879f
-
Kevin Peng authored
The Kconfig tool now supports loading config files and merging them into one. The merging is basically done by the later loaded config files overriding the first loaded config files with dependencies respected. With this feature, the Kconfig system will be aware of the configs such as platform settings and profile settings rather than having default values for all configurations. The environment variables are for the Kconfig files which refer to env. variables, for example the PLATFORM_PATH. Now the PLATFORM_PATH is no longer passed as one of the arguments, it's done via the --env argument now. Of course, any other env. variables can be appended at will. Change-Id: Ib39e13b29def382a9546cd7680c62a4f4d321f99 Signed-off-by:
Kevin Peng <kevin.peng@arm.com>
-
Kevin Peng authored
The Kconfig system now has a separated routine rather than integrated into the CMake Config system. It is now easy to adjust the config steps for the Kconfig system without impacting the CMake system. Change-Id: I41e088a571448ab74ab9e669d73a623bc9af5e51 Signed-off-by:
Kevin Peng <kevin.peng@arm.com>
-
Kevin Peng authored
CMake config and Kconfig system will be separated later. Moving out some common codes from set_config.cmake - Add pre_config.cmake for common codes - Move out platform preload.cmake to pre_config.cmake - Move out Library Model deprecation message to pre_config.cmake - Move out CMAKE_BUILD_TYPE setup to pre_config.cmake - Error checks (Library Model, TFM_SYSTEM_DSP and CMAKE_GENERATOR) are gathered together into pre_config.cmake - Add post_config.cmake for common codes - Move out the tfm_config setup from set_config.cmake to post_config.cmake. - Move out tfm_build_log_config.cmake inclusion to post_config.cmake - Move test repo fetch and config are separated and move to post_config.cmake Change-Id: Idf39766d4f7c3e3933443c7eef31b9e0479064ea Signed-off-by:
Kevin Peng <kevin.peng@arm.com>
-
Summer Qin authored
ER_EFLASH_DRIVER_RO section name is replaced by ER_CODE_SRAM. So, the related definitions need to be updated too. Signed-off-by:
Summer Qin <summer.qin@arm.com> Change-Id: I7f899595bdfe89e6f6bad09c655feb3db22f81ae
-
Jamie Fox authored
Removes the RSS timer, counter and MPU native drivers and uses the equivalent ones in the common Arm drivers directory instead. Signed-off-by:
Jamie Fox <jamie.fox@arm.com> Change-Id: I74940d22bfa7efb5065d058e3cb44056f78c27c4
-
Sherry Zhang authored
The previous PSA API redirecting is statically performed in header files, based on C preprocessors exported by the configuration system. The C preprocessors make the configuration maintenance harder, and users could not find the exact PSA API name in debug symbols, which is confusing. Now the redirecting turns into a runtime behavior. SPRTL calls corresponded ABI for PSA API. The ABI is set in the Secure Partition local storage by SPM when booting, based on Secure Partition types. Check 'prv_process_metadata' and 'psa_api_ipc.c' for details. Co-authored-by:
Ken Liu <ken.liu@arm.com> Signed-off-by:
Sherry Zhang <sherry.zhang2@arm.com> Change-Id: Ifc974941ddb6653389d9deca9f18f754b8f25b27
-
- Feb 28, 2023
-
-
Mohamed Omar Asaker authored
Adding GPT parser Side changes required: Includes the implementation of the `plat_get_image_source` function in the platform.c file. The GPT parser requires the function. Given the image id, it should return handle to the IO device contains the image and image specification that allows IO storage access to the image. Signed-off-by:
Mohamed Omar Asaker <mohamed.omarasaker@arm.com> Change-Id: I3ff32c83fbc589c993f3f069985c0bae9efdad0a
-
Jianliang Shen authored
THRD_EXPECTING_SCHEDULE() calls thrd_next() to decide whether scheduling is required and when it is required, PendSV will call thrd_next() again in ipc_schedule(). This duplicated call of thrd_next() can be avoided by returning a status of STATUS_NEED_SCHDULABLE from backend in these locations: - SVC_Handler - SPM cross API - Interrupt handler Signed-off-by:
Jianliang Shen <jianliang.shen@arm.com> Change-Id: I3f1fccbb045938624089e856b5a98c3365c76fcc
-
Summer Qin authored
Since Driver_GFC100_EFlash.c file uses definitions from device_definition.c. It is better to split the gfc100 eflash defition from device definition to mitigate the library link nesting issue. Signed-off-by:
Summer Qin <summer.qin@arm.com> Change-Id: I7a39b43c2a7c7ce7505d4671a16714b41dd98dda
-
- Feb 27, 2023
-
-
David Hu authored
Remove duplicated definitions of dual-core memory access check flags. Signed-off-by:
David Hu <david.hu@arm.com> Change-Id: Id834292d604c120833e2e10a352ca382e7051d2b
-
David Hu authored
Update multi-core memory access check document according to the latest implementation. Signed-off-by:
David Hu <david.hu@arm.com> Change-Id: I901d80bf2a665509596b8c245bbeb0ff70bd5f14
-
Ken Liu authored
Using phrase 'local storage' to replace 'scratch' and 'metadata' and rename the file to remove the redundant namespace. Signed-off-by:
Ken Liu <Ken.Liu@arm.com> Change-Id: I84bc9762e0da0aefee83039623cded05761f1d7d
-
Mohamed Omar Asaker authored
platform_log defines log messages macros to be used by the platform code It allows defining the module name to be added at the beginning of the log message. Based on build type PLAT_LOG_LEVEL is defined. In case of Debug/RelWithDebInfo PLAT_LOG_LEVEL is defined to Debug level else it is defined to OFF. usage in source file: ... INFO("msg"); ERROR("msg"); WARN("msg"); VERBOSE("msg"); DEBUG("msg"); ... Signed-off-by:
Mohamed Omar Asaker <mohamed.omarasaker@arm.com> Change-Id: Id730d3de18dcf2bbf37ed974a9403235fcb79f4c
-
Ken Liu authored
'connection_t' for internal data structure, and 'handle' for exposing to API callers. - Basically a straight 'search and replace' is applied. - Removed doxygen comments for internal APIs. Signed-off-by:
Ken Liu <Ken.Liu@arm.com> Change-Id: If0282c3effb77518d970d5896dc8073665094bdd
-
- Feb 24, 2023
-
-
Signed-off-by:
Dávid Házi <david.hazi@arm.com> Co-authored-by:
Mark Horvath <mark.horvath@arm.com> Change-Id: If2235999552bf5de51a22f30c8e80ae2ca6c4d04
-
For some boards is it necessary to run the flash drivers from the RAM (FW upgrade, XIP/QSPI flash mode). This common lib can be used for this purpose, when S_CODE_SRAM_ALIAS_BASE and TOTAL_CODE_SRAM_SIZE are set. This patch also removes Musca-B1 related object files from common linker scripts. Signed-off-by:
Dávid Házi <david.hazi@arm.com> Change-Id: I44293c66c3cd29eb8897c2e484f0dc3e5781507c
-
Fix ARM_DRIVER_USART macro, eliminate naming issue. Rename Driver_USART_Cmsdk to Driver_USART_CMSDK. Change-Id: Id03bd0428d0e0b3a53dfc43f0f1cc737d9fb56f1 Signed-off-by:
Gabor Toth <gabor.toth@arm.com>
-
The commit integrates musca_b1 target of psa-adac repository. To enable the secure debug workflow, the musca b1 target must be built with PLATFORM_PSA_ADAC_SECURE_DEBUG=ON. Signed-off-by:
Maulik Patel <maulik.patel@arm.com> Change-Id: I4339fa61cccb925b9b81e9d631262c5405b00fcd
-
BohdanHunko authored
This patch provides implementation of tfm_ns_interface_dispatch for bare metal and RTOS use cases. This is needed to simplify TF-M integration with NS application. For more details refer to "Default implementation of tfm_ns_interface_dispatch()" mailing thread: https://lists.trustedfirmware.org/archives/list/tf-m@lists.trustedfirmware.org/message/ZCBRUODVTBK26JGAZKKIJEQ62D3XIMSO/ and TF-M tech forum presentation "Default implemeation of tsm_ns_interface_dispatch": https://www.trustedfirmware.org/meetings/tf-m-technical-forum/ Following things are done: * tfm_ns_interface.c was moved from test repo to TF-M repo tfm_ns_interface_rtos.c file * tfm_ns_interface_bare_metal.c is added. * required NS OS wrapper header files are moved from test to TFM repo * tfm_ns_interface.c.example is removed as no longer needed are provided. * documentation is updated Signed-off-by:
Bohdan Hunko <Bohdan.Hunko@infineon.com> Signed-off-by:
Chris Brand <chris.brand@cypress.com> Change-Id: I3e7fd80946bd674cb562ddac8fbc8c7053e30478
-
- Feb 23, 2023
-
-
Maulik Patel authored
Also add carriage return to adac print log. Signed-off-by:
Maulik Patel <maulik.patel@arm.com> Change-Id: I98d36926a25a47e134cf19b1e4ba710e02a8902e
-
David Hazi authored
IAR has a compilation bug on the highest optimization level. Signed-off-by:
Dávid Házi <david.hazi@arm.com> Change-Id: I3ab5e6872b82634457f8050f9fe8c6261b6972f6
-
- Feb 22, 2023
-
-
David Hazi authored
In the documentation, clarifies the location where the code runs from. (embedded flash -> eMRAM) Signed-off-by:
Dávid Házi <david.hazi@arm.com> Change-Id: Ib44ce5da02cb8e6e0890fde0b20c51de96f33b53
-
chesun01 authored
As armasm does not support -mfloat-abi option for armclang to specify whether to use hardware instructions or software library functions for floating-point operations, compilation fails and reports errors. Create a dedicated FP flags for assembler instead of sharing the same FP flags with armclang. Note armlink uses the same FP flags as armasm. Signed-off-by:
Chendi Sun <chendi.sun@arm.com> Change-Id: If98f4accf237051e4bd9e0dee20ff0dce165400d
-
Sherry Zhang authored
Signed-off-by:
Sherry Zhang <sherry.zhang2@arm.com> Co-authored-by:
Tamas Ban <tamas.ban@arm.com> Change-Id: I256ab23d330bd45a93ff33f0cd93e45822c0ed2f
-
Kevin Peng authored
Change-Id: I6ab333524904f392693c83f51a74e21e40d58d2b Signed-off-by:
Kevin Peng <kevin.peng@arm.com>
-