xlat: Always compile TLB invalidation functions
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Tue, 25 Apr 2017 13:09:47 +0000 (14:09 +0100)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Thu, 5 Oct 2017 13:32:12 +0000 (14:32 +0100)
commitf301da44fa233bbde2e457b64aa7903623c53586
tree34e6d7bca00e0c6b744e2485d3bb63cc028f0b71
parentfdb1964c34968921379d3592e7ac6e9a685dbab1
xlat: Always compile TLB invalidation functions

TLB invalidation functions used to be conditionally compiled in.
They were enabled only when using the dynamic mapping feature.
because only then would we need to modify page tables on the fly.

Actually there are other use cases where invalidating TLBs is required.
When changing memory attributes in existing translation descriptors for
example. These other use cases do not necessarily depend on the dynamic
mapping feature.

This patch removes this dependency and always compile TLB invalidation
functions in. If they're not used, they will be removed from the binary
at link-time anyway so there's no consequence on the memory footprint
if these functions are not called.

Change-Id: I1c33764ae900eb00073ee23b7d0d53d4efa4dd21
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
lib/xlat_tables_v2/aarch64/xlat_tables_arch.c
lib/xlat_tables_v2/xlat_tables_private.h