arm: fixmap: implement __set_fixmap()
authorKees Cook <keescook@chromium.org>
Fri, 4 Apr 2014 21:27:49 +0000 (23:27 +0200)
committerKees Cook <keescook@chromium.org>
Thu, 16 Oct 2014 21:38:52 +0000 (14:38 -0700)
commit99b4ac9afce4129323b5b4c7002a942a9489914c
treee3e5a3a562883eac4999f72e940fa5261c518b46
parent836a24183273e9db1c092246bd8e306b297d9917
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>
arch/arm/include/asm/fixmap.h
arch/arm/mm/mmu.c