Bin Meng | 51ab457 | 2018-12-12 06:12:45 -0800 | [diff] [blame] | 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 | |
| 14 | int main(void) |
| 15 | { |
| 16 | DEFINE(GD_BOOT_HART, offsetof(gd_t, arch.boot_hart)); |
Lukas Auer | 3dea63c | 2019-03-17 19:28:37 +0100 | [diff] [blame^] | 17 | DEFINE(GD_AVAILABLE_HARTS, offsetof(gd_t, arch.available_harts)); |
Bin Meng | 51ab457 | 2018-12-12 06:12:45 -0800 | [diff] [blame] | 18 | |
| 19 | return 0; |
| 20 | } |