mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 19:14:28 +00:00

For NXP platforms: - Setup files for BL2 and BL31 - Other supporting files. Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com> Change-Id: I36a1183a0652701bdede9e02d41eb976accbb017
22 lines
400 B
C
22 lines
400 B
C
/*
|
|
* Copyright 2018-2020 NXP
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <arch_helpers.h>
|
|
|
|
#include <plat/common/platform.h>
|
|
|
|
#define RANDOM_CANARY_VALUE ((u_register_t) 3288484550995823360ULL)
|
|
|
|
u_register_t plat_get_stack_protector_canary(void)
|
|
{
|
|
/*
|
|
* TBD: Generate Random Number from NXP CAAM Block.
|
|
*/
|
|
return RANDOM_CANARY_VALUE ^ read_cntpct_el0();
|
|
}
|