aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/lib/asm-offsets.c')
-rw-r--r--arch/riscv/lib/asm-offsets.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/riscv/lib/asm-offsets.c b/arch/riscv/lib/asm-offsets.c
new file mode 100644
index 0000000000..e0b71f5691
--- /dev/null
+++ b/arch/riscv/lib/asm-offsets.c
@@ -0,0 +1,19 @@
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
4 *
5 * From arch/x86/lib/asm-offsets.c
6 *
7 * This program is used to generate definitions needed by
8 * assembly language modules.
9 */
10
11#include <common.h>
12#include <linux/kbuild.h>
13
14int main(void)
15{
16 DEFINE(GD_BOOT_HART, offsetof(gd_t, arch.boot_hart));
17
18 return 0;
19}