 f2241d16ea
			
		
	
	
		f2241d16ea
		
	
	
	
	
		
			
			The qemu_mprotect_*() family of functions are used in very few files; move them from osdep.h to a new qemu/mprotect.h. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20220208200856.3558249-3-peter.maydell@linaro.org
		
			
				
	
	
		
			15 lines
		
	
	
		
			367 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			367 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * QEMU mprotect functions
 | |
|  *
 | |
|  * This work is licensed under the terms of the GNU GPL, version 2 or later.
 | |
|  * See the COPYING file in the top-level directory.
 | |
|  */
 | |
| #ifndef QEMU_MPROTECT_H
 | |
| #define QEMU_MPROTECT_H
 | |
| 
 | |
| int qemu_mprotect_rw(void *addr, size_t size);
 | |
| int qemu_mprotect_rwx(void *addr, size_t size);
 | |
| int qemu_mprotect_none(void *addr, size_t size);
 | |
| 
 | |
| #endif
 |