code-patching.c (3fd6c59042dbba50391e30862beac979491145fe) | code-patching.c (0c3beacf681ec897e0b36685a9b49d01f5cb2dfb) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright 2008 Michael Ellerman, IBM Corporation. 4 */ 5 6#include <linux/kprobes.h> 7#include <linux/mmu_context.h> 8#include <linux/random.h> 9#include <linux/vmalloc.h> 10#include <linux/init.h> 11#include <linux/cpuhotplug.h> 12#include <linux/uaccess.h> 13#include <linux/jump_label.h> 14 15#include <asm/debug.h> 16#include <asm/pgalloc.h> 17#include <asm/tlb.h> 18#include <asm/tlbflush.h> 19#include <asm/page.h> | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright 2008 Michael Ellerman, IBM Corporation. 4 */ 5 6#include <linux/kprobes.h> 7#include <linux/mmu_context.h> 8#include <linux/random.h> 9#include <linux/vmalloc.h> 10#include <linux/init.h> 11#include <linux/cpuhotplug.h> 12#include <linux/uaccess.h> 13#include <linux/jump_label.h> 14 15#include <asm/debug.h> 16#include <asm/pgalloc.h> 17#include <asm/tlb.h> 18#include <asm/tlbflush.h> 19#include <asm/page.h> |
20#include <asm/code-patching.h> | 20#include <asm/text-patching.h> |
21#include <asm/inst.h> 22 23static int __patch_mem(void *exec_addr, unsigned long val, void *patch_addr, bool is_dword) 24{ 25 if (!IS_ENABLED(CONFIG_PPC64) || likely(!is_dword)) { 26 /* For big endian correctness: plain address would use the wrong half */ 27 u32 val32 = val; 28 --- 667 unchanged lines hidden --- | 21#include <asm/inst.h> 22 23static int __patch_mem(void *exec_addr, unsigned long val, void *patch_addr, bool is_dword) 24{ 25 if (!IS_ENABLED(CONFIG_PPC64) || likely(!is_dword)) { 26 /* For big endian correctness: plain address would use the wrong half */ 27 u32 val32 = val; 28 --- 667 unchanged lines hidden --- |