diff options
author | Kees Cook <keescook@chromium.org> | 2014-04-04 17:27:49 -0400 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2014-10-16 17:38:52 -0400 |
commit | 99b4ac9afce4129323b5b4c7002a942a9489914c (patch) | |
tree | e3e5a3a562883eac4999f72e940fa5261c518b46 /arch/arm/include | |
parent | 836a24183273e9db1c092246bd8e306b297d9917 (diff) |
arm: fixmap: implement __set_fixmap()
This is used from set_fixmap() and clear_fixmap() via asm-generic/fixmap.h.
Also makes sure that the fixmap allocation fits into the expected range.
Based on patch by Rabin Vincent.
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Rabin Vincent <rabin@rab.in>
Acked-by: Nicolas Pitre <nico@linaro.org>
Diffstat (limited to 'arch/arm/include')
-rw-r--r-- | arch/arm/include/asm/fixmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/fixmap.h b/arch/arm/include/asm/fixmap.h index d984ca69ce19..714606f70425 100644 --- a/arch/arm/include/asm/fixmap.h +++ b/arch/arm/include/asm/fixmap.h | |||
@@ -14,6 +14,8 @@ enum fixed_addresses { | |||
14 | __end_of_fixed_addresses | 14 | __end_of_fixed_addresses |
15 | }; | 15 | }; |
16 | 16 | ||
17 | void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot); | ||
18 | |||
17 | #include <asm-generic/fixmap.h> | 19 | #include <asm-generic/fixmap.h> |
18 | 20 | ||
19 | #endif | 21 | #endif |