1 /* 2 * QEMU page protection declarations. 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * SPDX-License-Identifier: LGPL-2.1+ 7 */ 8 #ifndef USER_PAGE_PROTECTION_H 9 #define USER_PAGE_PROTECTION_H 10 11 #ifndef CONFIG_USER_ONLY 12 #error Cannot include this header from system emulation 13 #endif 14 15 #include "exec/translation-block.h" 16 17 void page_protect(tb_page_addr_t page_addr); 18 int page_unprotect(tb_page_addr_t address, uintptr_t pc); 19 20 #endif 21