Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 755f7163 authored by Mark Salter's avatar Mark Salter Committed by Kees Cook
Browse files

UPSTREAM: 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: default avatarMark Salter <msalter@redhat.com>
Reviewed-by: default avatarDoug Anderson <dianders@chromium.org>
[kees: update for a05e54c1 ("ARM: 8031/2: change fixmap ...")]
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Cc: Laura Abbott <lauraa@codeaurora.org>
Cc: Rob Herring <robh@kernel.org>
Acked-by: default avatarNicolas Pitre <nico@linaro.org>

(cherry picked from commit b615bbbff1c4d6fcd13007e75d75f6510aeb3808)
Signed-off-by: default avatarKees Cook <keescook@google.com>
Change-Id: I61d705f70b57bb5c051d17f7fa5c6b4aa88e71e2
parent b1719402
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment