mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-21 13:32:22 +00:00
27 lines
533 B
C
27 lines
533 B
C
/*
|
|
* Copyright (C) 2020 Richard Hughes <richard@hughsie.com>
|
|
* Copyright (C) 2020 H.J. Lu <hjl.tools@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.1+
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include "fu-cpu-helper-cet-common.h"
|
|
|
|
static void
|
|
fu_cpu_helper_cet_testfn_fptr(void)
|
|
{
|
|
}
|
|
|
|
static void __attribute__((noinline, noclone))
|
|
fu_cpu_helper_cet_testfn_call_fptr(void (*func)(void))
|
|
{
|
|
func();
|
|
}
|
|
|
|
void __attribute__((noinline, noclone)) fu_cpu_helper_cet_testfn1(void)
|
|
{
|
|
fu_cpu_helper_cet_testfn_call_fptr(fu_cpu_helper_cet_testfn_fptr);
|
|
}
|