Linux Audio

Check our new training course

Linux BSP upgrade and security maintenance

Need help to get security updates for your Linux BSP?
Loading...
v5.9
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * Prototypes for functions that are shared between setup_(32|64|common).c
 4 *
 5 * Copyright 2016 Michael Ellerman, IBM Corporation.
 
 
 
 
 
 6 */
 7
 8#ifndef __ARCH_POWERPC_KERNEL_SETUP_H
 9#define __ARCH_POWERPC_KERNEL_SETUP_H
10
11#ifdef CONFIG_CC_IS_CLANG
12#define __nostackprotector
13#else
14#define __nostackprotector __attribute__((__optimize__("no-stack-protector")))
15#endif
16
17void initialize_cache_info(void);
18void irqstack_early_init(void);
19
20#ifdef CONFIG_PPC32
21void setup_power_save(void);
22#else
23static inline void setup_power_save(void) { };
24#endif
25
26#if defined(CONFIG_PPC64) && defined(CONFIG_SMP)
27void check_smt_enabled(void);
28#else
29static inline void check_smt_enabled(void) { };
30#endif
31
32#if defined(CONFIG_PPC_BOOK3E) && defined(CONFIG_SMP)
33void setup_tlb_core_data(void);
34#else
35static inline void setup_tlb_core_data(void) { };
36#endif
37
38#if defined(CONFIG_PPC_BOOK3E) || defined(CONFIG_BOOKE) || defined(CONFIG_40x)
39void exc_lvl_early_init(void);
40#else
41static inline void exc_lvl_early_init(void) { };
42#endif
43
44#if defined(CONFIG_PPC64) || defined(CONFIG_VMAP_STACK)
45void emergency_stack_init(void);
46#else
47static inline void emergency_stack_init(void) { };
48#endif
49
50#ifdef CONFIG_PPC64
51u64 ppc64_bolted_size(void);
52
53/* Default SPR values from firmware/kexec */
54extern unsigned long spr_default_dscr;
55#endif
56
57/*
58 * Having this in kvm_ppc.h makes include dependencies too
59 * tricky to solve for setup-common.c so have it here.
60 */
61#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
62void kvm_cma_reserve(void);
63#else
64static inline void kvm_cma_reserve(void) { };
65#endif
66
67#ifdef CONFIG_TAU
68u32 cpu_temp(unsigned long cpu);
69u32 cpu_temp_both(unsigned long cpu);
70u32 tau_interrupts(unsigned long cpu);
71#endif /* CONFIG_TAU */
72
73#endif /* __ARCH_POWERPC_KERNEL_SETUP_H */
v4.10.11
 
 1/*
 2 * Prototypes for functions that are shared between setup_(32|64|common).c
 3 *
 4 * Copyright 2016 Michael Ellerman, IBM Corporation.
 5 *
 6 * This program is free software; you can redistribute it and/or
 7 * modify it under the terms of the GNU General Public License
 8 * as published by the Free Software Foundation; either version
 9 * 2 of the License, or (at your option) any later version.
10 */
11
12#ifndef __ARCH_POWERPC_KERNEL_SETUP_H
13#define __ARCH_POWERPC_KERNEL_SETUP_H
14
 
 
 
 
 
 
15void initialize_cache_info(void);
16void irqstack_early_init(void);
17
18#ifdef CONFIG_PPC32
19void setup_power_save(void);
20#else
21static inline void setup_power_save(void) { };
22#endif
23
24#if defined(CONFIG_PPC64) && defined(CONFIG_SMP)
25void check_smt_enabled(void);
26#else
27static inline void check_smt_enabled(void) { };
28#endif
29
30#if defined(CONFIG_PPC_BOOK3E) && defined(CONFIG_SMP)
31void setup_tlb_core_data(void);
32#else
33static inline void setup_tlb_core_data(void) { };
34#endif
35
36#if defined(CONFIG_PPC_BOOK3E) || defined(CONFIG_BOOKE) || defined(CONFIG_40x)
37void exc_lvl_early_init(void);
38#else
39static inline void exc_lvl_early_init(void) { };
40#endif
41
42#ifdef CONFIG_PPC64
43void emergency_stack_init(void);
44#else
45static inline void emergency_stack_init(void) { };
46#endif
47
 
 
 
 
 
 
 
48/*
49 * Having this in kvm_ppc.h makes include dependencies too
50 * tricky to solve for setup-common.c so have it here.
51 */
52#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
53void kvm_cma_reserve(void);
54#else
55static inline void kvm_cma_reserve(void) { };
56#endif
 
 
 
 
 
 
57
58#endif /* __ARCH_POWERPC_KERNEL_SETUP_H */