patch.h 314 B

1234567891011121314
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2020 SiFive
  4. */
  5. #ifndef _ASM_RISCV_PATCH_H
  6. #define _ASM_RISCV_PATCH_H
  7. int patch_text_nosync(void *addr, const void *insns, size_t len);
  8. int patch_text(void *addr, u32 insn);
  9. extern int riscv_patch_in_stop_machine;
  10. #endif /* _ASM_RISCV_PATCH_H */