blob: 8c8add87bbc568984586eeebeeebac98cc9e75ce [file] [log] [blame]
Colin Crosse5e483d2011-08-11 17:15:24 -07001/*
2 * arch/arm/include/asm/rodata.h
3 *
4 * Copyright (C) 2011 Google, Inc.
5 *
6 * Author: Colin Cross <ccross@android.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12#ifndef _ASMARM_RODATA_H
13#define _ASMARM_RODATA_H
14
15#ifndef __ASSEMBLY__
16
17#ifdef CONFIG_DEBUG_RODATA
18
19int set_memory_rw(unsigned long virt, int numpages);
20int set_memory_ro(unsigned long virt, int numpages);
21
22void mark_rodata_ro(void);
23void set_kernel_text_rw(void);
24void set_kernel_text_ro(void);
25#else
26static inline void set_kernel_text_rw(void) { }
27static inline void set_kernel_text_ro(void) { }
28#endif
29
30#endif
31
32#endif