]> Git Repo - J-u-boot.git/blob - arch/riscv/lib/asm-offsets.c
common: Drop asm/global_data.h from common header
[J-u-boot.git] / arch / riscv / lib / asm-offsets.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2018, Bin Meng <[email protected]>
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 <asm/global_data.h>
13 #include <linux/kbuild.h>
14
15 int main(void)
16 {
17         DEFINE(GD_BOOT_HART, offsetof(gd_t, arch.boot_hart));
18         DEFINE(GD_FIRMWARE_FDT_ADDR, offsetof(gd_t, arch.firmware_fdt_addr));
19 #ifndef CONFIG_XIP
20         DEFINE(GD_AVAILABLE_HARTS, offsetof(gd_t, arch.available_harts));
21 #endif
22
23         return 0;
24 }
This page took 0.027511 seconds and 4 git commands to generate.