]> git.baikalelectronics.ru Git - kernel.git/commit
arm: use generic fixmap.h
authorMark Salter <msalter@redhat.com>
Wed, 13 Aug 2014 16:04:49 +0000 (09:04 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 16 Oct 2014 21:38:52 +0000 (14:38 -0700)
commit49aafa6e8f1cb6bdb9c5a0ff2d49a9a489ea1e2c
tree6b6ed6b813bd710d73aa77b5f68e6628e2a1a7fd
parent05e99138be254f8902413f5c86478c488bb31f13
arm: use generic fixmap.h

ARM is different from other architectures in that fixmap pages are indexed
with a positive offset from FIXADDR_START.  Other architectures index with
a negative offset from FIXADDR_TOP.  In order to use the generic fixmap.h
definitions, this patch redefines FIXADDR_TOP to be inclusive of the
useable range.  That is, FIXADDR_TOP is the virtual address of the topmost
fixed page.  The newly defined FIXADDR_END is the first virtual address
past the fixed mappings.

Signed-off-by: Mark Salter <msalter@redhat.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
[kees: update for 2e3064b630ce ("ARM: 8031/2: change fixmap ...")]
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Laura Abbott <lauraa@codeaurora.org>
Cc: Rob Herring <robh@kernel.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
arch/arm/include/asm/fixmap.h
arch/arm/mm/init.c