xref: /openbmc/linux/arch/loongarch/include/asm/setup.h (revision 31d49ba0)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4  */
5 
6 #ifndef _LOONGARCH_SETUP_H
7 #define _LOONGARCH_SETUP_H
8 
9 #include <linux/types.h>
10 #include <uapi/asm/setup.h>
11 
12 #define VECSIZE 0x200
13 
14 extern unsigned long eentry;
15 extern unsigned long tlbrentry;
16 extern char init_command_line[COMMAND_LINE_SIZE];
17 extern void tlb_init(int cpu);
18 extern void cpu_cache_init(void);
19 extern void cache_error_setup(void);
20 extern void per_cpu_trap_init(int cpu);
21 extern void set_handler(unsigned long offset, void *addr, unsigned long len);
22 extern void set_merr_handler(unsigned long offset, void *addr, unsigned long len);
23 
24 #ifdef CONFIG_RELOCATABLE
25 
26 struct rela_la_abs {
27 	long offset;
28 	long symvalue;
29 };
30 
31 extern long __la_abs_begin;
32 extern long __la_abs_end;
33 extern long __rela_dyn_begin;
34 extern long __rela_dyn_end;
35 
36 extern void * __init relocate_kernel(void);
37 
38 #endif
39 
40 #endif /* __SETUP_H */
41