• Dimitris Papastamos's avatar
    Fixup `SMCCC_ARCH_FEATURES` semantics · a205a56e
    Dimitris Papastamos authored
    
    When querying `SMCCC_ARCH_WORKAROUND_1` through `SMCCC_ARCH_FEATURES`,
    return either:
      * -1 to indicate the PE on which `SMCCC_ARCH_FEATURES` is called
        requires firmware mitigation for CVE-2017-5715 but the mitigation
        is not compiled in.
      * 0 to indicate that firmware mitigation is required, or
      * 1 to indicate that no firmware mitigation is required.
    
    This patch complies with v1.2 of the firmware interfaces
    specification (ARM DEN 0070A).
    
    Change-Id: Ibc32d6620efdac6c340758ec502d95554a55f02a
    Signed-off-by: default avatarDimitris Papastamos <dimitris.papastamos@arm.com>
    a205a56e
workaround_cve_2017_5715.h 292 Bytes
/*
 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef __WORKAROUND_CVE_2017_5715_H__
#define __WORKAROUND_CVE_2017_5715_H__

int check_workaround_cve_2017_5715(void);

#endif /* __WORKAROUND_CVE_2017_5715_H__ */