blob: 49b84a2d1280d0952f26a50925cb609ad656c214 [file] [log] [blame]
/*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
*/
#ifndef IMPORT_SYM_H
#define IMPORT_SYM_H
/*
* Import an assembly or linker symbol as a C expression with the specified
* type
*/
#define IMPORT_SYM(type, sym, name) \
extern unsigned long sym;\
static const __attribute__((unused)) type name = (type) (void *)(&sym)
#endif /* IMPORT_SYM_H */