aboutsummaryrefslogtreecommitdiff
path: root/include/sbi/sbi_visibility.h
blob: f900c44565a4d16b130418ed504a183fa8cbff83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * SPDX-License-Identifier: BSD-2-Clause
 *
 * Copyright (c) 2025 SiFive
 */

#ifndef __SBI_VISIBILITY_H__
#define __SBI_VISIBILITY_H__

#ifndef __DTS__
/*
 * Declare all global objects with hidden visibility so access is PC-relative
 * instead of going through the GOT.
 */
#pragma GCC visibility push(hidden)
#endif

#endif