mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-27 07:15:20 +00:00

STM32MP1 is a microprocessor designed by STMicroelectronics, based on a dual Arm Cortex-A7. It is an Armv7-A platform, using dedicated code from TF-A. STM32MP1 uses BL2 compiled with BL2_AT_EL3. Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Mathieu Belou <mathieu.belou@st.com> Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Signed-off-by: Pascal Paillet <p.paillet@st.com>
21 lines
491 B
C
21 lines
491 B
C
/*
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <arch_helpers.h>
|
|
#include <platform.h>
|
|
#include <stdint.h>
|
|
|
|
#define RANDOM_CANARY_VALUE 2144346116U
|
|
|
|
u_register_t plat_get_stack_protector_canary(void)
|
|
{
|
|
/*
|
|
* Ideally, a random number should be returned instead of the
|
|
* combination of a timer's value and a compile-time constant.
|
|
*/
|
|
return RANDOM_CANARY_VALUE ^ (u_register_t)read_cntpct_el0();
|
|
}
|
|
|