Bug fix: fixed memory sharing tests failure.
Previously here passing cpu_id, means it is physical core id.
Due to this CHECK condition is failing inside the fucntion, now
passing cpu_index of the cpu.
Signed-off-by: Mahesh Bireddy <mahesh.reddybireddy@arm.com>
Change-Id: I1f6e8f1f53062341de679b981a11de97c0637797
diff --git a/inc/hf/cpu.h b/inc/hf/cpu.h
index af7391f..7c93ad2 100644
--- a/inc/hf/cpu.h
+++ b/inc/hf/cpu.h
@@ -39,5 +39,5 @@
bool cpu_on(struct cpu *c, ipaddr_t entry, uintreg_t arg);
void cpu_off(struct cpu *c);
struct cpu *cpu_find(cpu_id_t id);
-uint8_t *cpu_get_buffer(cpu_id_t cpu_id);
-uint32_t cpu_get_buffer_size(cpu_id_t cpu_id);
+uint8_t *cpu_get_buffer(struct cpu *c);
+uint32_t cpu_get_buffer_size(struct cpu *c);