init-common.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) init-common.c (4ed47dbefa299d7b36944f6d4001ee83612dd680)
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

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

16
17#undef DEBUG
18
19#include <linux/string.h>
20#include <asm/pgalloc.h>
21#include <asm/pgtable.h>
22#include <asm/kup.h>
23
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

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

16
17#undef DEBUG
18
19#include <linux/string.h>
20#include <asm/pgalloc.h>
21#include <asm/pgtable.h>
22#include <asm/kup.h>
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);
28
24static bool disable_kuep = !IS_ENABLED(CONFIG_PPC_KUEP);
25static bool disable_kuap = !IS_ENABLED(CONFIG_PPC_KUAP);
26
27static int __init parse_nosmep(char *p)
28{
29 disable_kuep = true;
30 pr_warn("Disabling Kernel Userspace Execution Prevention\n");
31 return 0;

--- 113 unchanged lines hidden ---
29static bool disable_kuep = !IS_ENABLED(CONFIG_PPC_KUEP);
30static bool disable_kuap = !IS_ENABLED(CONFIG_PPC_KUAP);
31
32static int __init parse_nosmep(char *p)
33{
34 disable_kuep = true;
35 pr_warn("Disabling Kernel Userspace Execution Prevention\n");
36 return 0;

--- 113 unchanged lines hidden ---