HAL: Update boundary related HAL functions
This patch contains a couple of updates for boundary HAL:
- For a partition, the boundary is a collection of memory regions,
hence use a singular number naming instead of plural 'boundaries'.
- As chose 'uintptr_t' as the opaque type for a boundary, the argument
name should avoid the prefix 'p_' which indicates pointers
('p_boundary' changed to 'boundary').
- Change 'pp_boundaries' to 'p_boundary', which is 'pointer of a
boundary' to indicate it is a boundary container.
- Change the function name 'tfm_hal_update_boundary' to
'tfm_hal_activate_boundary', as 'update' is not propose-clear.
- Re-ordered the sections in the document for boundary API, and
updates the function description.
Signed-off-by: Ken Liu <Ken.Liu@arm.com>
Change-Id: Ieee7e497016d1106c395900413bbade5b7b9e79f
diff --git a/secure_fw/spm/ffm/interrupt.c b/secure_fw/spm/ffm/interrupt.c
index 1b34e04..cd24c2f 100644
--- a/secure_fw/spm/ffm/interrupt.c
+++ b/secure_fw/spm/ffm/interrupt.c
@@ -56,9 +56,9 @@
((struct context_ctrl_t *)p_owner_sp->thrd.p_context_ctrl)->sp;
}
- if (p_owner_sp->p_boundaries != p_curr_sp->p_boundaries) {
- tfm_hal_update_boundaries(p_owner_sp->p_ldinf,
- p_owner_sp->p_boundaries);
+ if (p_owner_sp->boundary != p_curr_sp->boundary) {
+ tfm_hal_activate_boundary(p_owner_sp->p_ldinf,
+ p_owner_sp->boundary);
}
/*
@@ -88,9 +88,9 @@
p_prev_sp = (struct partition_t *)(p_ctx_flih_ret->state_ctx.r2);
p_owner_sp = GET_CURRENT_COMPONENT();
- if (p_owner_sp->p_boundaries != p_prev_sp->p_boundaries) {
- tfm_hal_update_boundaries(p_prev_sp->p_ldinf,
- p_prev_sp->p_boundaries);
+ if (p_owner_sp->boundary != p_prev_sp->boundary) {
+ tfm_hal_activate_boundary(p_prev_sp->p_ldinf,
+ p_prev_sp->boundary);
}
/* Restore current component */