^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __ASM_SET_MEMORY_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __ASM_SET_MEMORY_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) * Functions to change memory attributes.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) int set_memory_ro(unsigned long addr, int numpages);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) int set_memory_rw(unsigned long addr, int numpages);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) int set_memory_x(unsigned long addr, int numpages);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) int set_memory_nx(unsigned long addr, int numpages);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #endif