mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-14 02:00:27 +00:00
Add stack protector implementation for RISC-V architecture using a global __stack_chk_guard variable. This differs from x86 which uses per-CPU stack canaries. Tracked-On: #8834 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Fei Li <fei1.li@intel.com> Acked-by: Wang, Yu1 <yu1.wang@intel.com>
13 lines
202 B
C
13 lines
202 B
C
/*
|
|
* Copyright (C) 2025 Intel Corporation.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <types.h>
|
|
#include <asm/security.h>
|
|
|
|
#ifdef STACK_PROTECTOR
|
|
unsigned long __stack_chk_guard;
|
|
#endif
|