Remove single page mapping functions.
This was more code to maintain for no benefit. It was a specialized
version of the generic mapping and only used for mapping the PL011 so it
was also rarely run.
It's uses have been replaced with the generic mapping function but if we
can show that we need it later then it can be added back.
Change-Id: I836007dd690dcc9dbdc79bd424127139f20fc0a5
diff --git a/src/load.c b/src/load.c
index eb6a9f9..c118b89 100644
--- a/src/load.c
+++ b/src/load.c
@@ -329,10 +329,11 @@
/* TODO: Remove this. */
/* Grant VM access to uart. */
- mm_vm_identity_map_page(&vm->ptable, pa_init(PL011_BASE),
- MM_MODE_R | MM_MODE_W | MM_MODE_D |
- MM_MODE_NOINVALIDATE,
- NULL);
+ mm_vm_identity_map(&vm->ptable, pa_init(PL011_BASE),
+ pa_add(pa_init(PL011_BASE), PAGE_SIZE),
+ MM_MODE_R | MM_MODE_W | MM_MODE_D |
+ MM_MODE_NOINVALIDATE,
+ NULL);
/* Grant the VM access to the memory. */
if (!mm_vm_identity_map(&vm->ptable, secondary_mem_begin,