init-common.c (05909cd9a0c8811731b38697af13075e8954314f) init-common.c (61130e203dca3ba1f0c510eb12f7a4294e31a834)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * PowerPC version
4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
5 *
6 * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au)
7 * and Cort Dougan (PReP) (cort@cs.nmt.edu)
8 * Copyright (C) 1996 Paul Mackerras

--- 14 unchanged lines hidden (view full) ---

23
24phys_addr_t memstart_addr __ro_after_init = (phys_addr_t)~0ull;
25EXPORT_SYMBOL_GPL(memstart_addr);
26phys_addr_t kernstart_addr __ro_after_init;
27EXPORT_SYMBOL_GPL(kernstart_addr);
28unsigned long kernstart_virt_addr __ro_after_init = KERNELBASE;
29EXPORT_SYMBOL_GPL(kernstart_virt_addr);
30
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * PowerPC version
4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
5 *
6 * Modifications by Paul Mackerras (PowerMac) (paulus@cs.anu.edu.au)
7 * and Cort Dougan (PReP) (cort@cs.nmt.edu)
8 * Copyright (C) 1996 Paul Mackerras

--- 14 unchanged lines hidden (view full) ---

23
24phys_addr_t memstart_addr __ro_after_init = (phys_addr_t)~0ull;
25EXPORT_SYMBOL_GPL(memstart_addr);
26phys_addr_t kernstart_addr __ro_after_init;
27EXPORT_SYMBOL_GPL(kernstart_addr);
28unsigned long kernstart_virt_addr __ro_after_init = KERNELBASE;
29EXPORT_SYMBOL_GPL(kernstart_virt_addr);
30
31static bool disable_kuep = !IS_ENABLED(CONFIG_PPC_KUEP);
32static bool disable_kuap = !IS_ENABLED(CONFIG_PPC_KUAP);
31bool disable_kuep = !IS_ENABLED(CONFIG_PPC_KUEP);
32bool disable_kuap = !IS_ENABLED(CONFIG_PPC_KUAP);
33
34static int __init parse_nosmep(char *p)
35{
36 disable_kuep = true;
37 pr_warn("Disabling Kernel Userspace Execution Prevention\n");
38 return 0;
39}
40early_param("nosmep", parse_nosmep);

--- 111 unchanged lines hidden ---
33
34static int __init parse_nosmep(char *p)
35{
36 disable_kuep = true;
37 pr_warn("Disabling Kernel Userspace Execution Prevention\n");
38 return 0;
39}
40early_param("nosmep", parse_nosmep);

--- 111 unchanged lines hidden ---