commit 181ed5fc8d25aaceec7f9616c6192640f95f38a0 parent 17df27cc864a528992ce17bddfe3d2fb43f00dff Author: Roberto Vargas <roberto.vargas@arm.com> Date: Fri, 12 Oct 2018 17:39:07 +0100 [lib/hdl] Add first version of handler library This is the first version of the handler library which doesn't implement anything but it defines all the needed symbols. Change-Id: Ib3a2750cd469f7fdea87c1a359efe22d275fba4d Diffstat:
45 files changed, 356 insertions(+), 1 deletion(-)
diff --git a/src/Makefile b/src/Makefile @@ -1,7 +1,7 @@ PROJECTDIR=.. include $(PROJECTDIR)/scripts/rules.mk -LIBS = libc librmu libtypes +LIBS = libc librmu libtypes libhdl IMGS = ramfw romfw DIRS = $(LIBS) $(IMGS) diff --git a/src/libhdl/Makefile b/src/libhdl/Makefile @@ -0,0 +1,54 @@ +PROJECTDIR=../.. +include $(PROJECTDIR)/scripts/rules.mk + +OBJS = hdl_RMU_Crypto_Random.o \ + hdl_RMU_Local_Load.o \ + hdl_RMU_Local_Status.o \ + hdl_RMU_Local_Validate.o \ + hdl_RMU_REC_Prepare.o \ + hdl_RMU_REC_ReadGeneralPurposeRegister.o \ + hdl_RMU_REC_ReadSystemRegister.o \ + hdl_RMU_REC_ReadVectorRegister.o \ + hdl_RMU_REC_Register.o \ + hdl_RMU_REC_Release.o \ + hdl_RMU_REC_Size.o \ + hdl_RMU_REC_WriteGeneralPurposeRegister.o \ + hdl_RMU_REC_WriteSystemRegister.o \ + hdl_RMU_REC_WriteVectorRegister.o \ + hdl_RMU_Realm_Activate.o \ + hdl_RMU_Realm_AttestationReport.o \ + hdl_RMU_Realm_AttestationReportInit.o \ + hdl_RMU_Realm_AttestationReportSize.o \ + hdl_RMU_Realm_CreateZeroMetadata.o \ + hdl_RMU_Realm_DeriveBindingKey.o \ + hdl_RMU_Realm_ExtendBindingKeySeedValue.o \ + hdl_RMU_Realm_GetBindingKeySeedValue.o \ + hdl_RMU_Realm_GetMetadata.o \ + hdl_RMU_Realm_GetParameterInheritance.o \ + hdl_RMU_Realm_GetParameterValue.o \ + hdl_RMU_Realm_Info.o \ + hdl_RMU_Realm_Initialize.o \ + hdl_RMU_Realm_Invalidate.o \ + hdl_RMU_Realm_InvalidateCurrent.o \ + hdl_RMU_Realm_Populate.o \ + hdl_RMU_Realm_Prepare.o \ + hdl_RMU_Realm_ReadMemory.o \ + hdl_RMU_Realm_Register.o \ + hdl_RMU_Realm_Release.o \ + hdl_RMU_Realm_SetBindingKeySeedLock.o \ + hdl_RMU_Realm_SetCommandTrap.o \ + hdl_RMU_Realm_SetMetadata.o \ + hdl_RMU_Realm_SetParameterInheritance.o \ + hdl_RMU_Realm_SetParameterValue.o \ + hdl_RMU_Realm_WriteMemory.o \ + hdl_RMU_System_Enable.o \ + hdl_RMU_System_InterfaceVersion.o \ + hdl_RMU_System_Status.o \ + +TARGET = $(LIBDIR)/libhdl.a + +all: $(TARGET) + +$(TARGET): $(OBJS) + $(AR) $(ARFLAGS) $@ $? + ranlib $@ diff --git a/src/libhdl/hdl_RMU_Crypto_Random.c b/src/libhdl/hdl_RMU_Crypto_Random.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Crypto_Random(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Local_Load.c b/src/libhdl/hdl_RMU_Local_Load.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Local_Load(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Local_Status.c b/src/libhdl/hdl_RMU_Local_Status.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Local_Status(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Local_Validate.c b/src/libhdl/hdl_RMU_Local_Validate.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Local_Validate(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_REC_Prepare.c b/src/libhdl/hdl_RMU_REC_Prepare.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_REC_Prepare(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_REC_ReadGeneralPurposeRegister.c b/src/libhdl/hdl_RMU_REC_ReadGeneralPurposeRegister.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_REC_ReadGeneralPurposeRegister(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_REC_ReadSystemRegister.c b/src/libhdl/hdl_RMU_REC_ReadSystemRegister.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_REC_ReadSystemRegister(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_REC_ReadVectorRegister.c b/src/libhdl/hdl_RMU_REC_ReadVectorRegister.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_REC_ReadVectorRegister(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_REC_Register.c b/src/libhdl/hdl_RMU_REC_Register.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_REC_Register(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_REC_Release.c b/src/libhdl/hdl_RMU_REC_Release.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_REC_Release(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_REC_Size.c b/src/libhdl/hdl_RMU_REC_Size.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_REC_Size(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_REC_WriteGeneralPurposeRegister.c b/src/libhdl/hdl_RMU_REC_WriteGeneralPurposeRegister.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_REC_WriteGeneralPurposeRegister(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_REC_WriteSystemRegister.c b/src/libhdl/hdl_RMU_REC_WriteSystemRegister.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_REC_WriteSystemRegister(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_REC_WriteVectorRegister.c b/src/libhdl/hdl_RMU_REC_WriteVectorRegister.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_REC_WriteVectorRegister(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_Activate.c b/src/libhdl/hdl_RMU_Realm_Activate.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_Activate(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_AttestationReport.c b/src/libhdl/hdl_RMU_Realm_AttestationReport.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_AttestationReport(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_AttestationReportInit.c b/src/libhdl/hdl_RMU_Realm_AttestationReportInit.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_AttestationReportInit(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_AttestationReportSize.c b/src/libhdl/hdl_RMU_Realm_AttestationReportSize.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_AttestationReportSize(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_CreateZeroMetadata.c b/src/libhdl/hdl_RMU_Realm_CreateZeroMetadata.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_CreateZeroMetadata(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_DeriveBindingKey.c b/src/libhdl/hdl_RMU_Realm_DeriveBindingKey.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_DeriveBindingKey(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_ExtendBindingKeySeedValue.c b/src/libhdl/hdl_RMU_Realm_ExtendBindingKeySeedValue.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_ExtendBindingKeySeedValue(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_GetBindingKeySeedValue.c b/src/libhdl/hdl_RMU_Realm_GetBindingKeySeedValue.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_GetBindingKeySeedValue(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_GetMetadata.c b/src/libhdl/hdl_RMU_Realm_GetMetadata.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_GetMetadata(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_GetParameterInheritance.c b/src/libhdl/hdl_RMU_Realm_GetParameterInheritance.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_GetParameterInheritance(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_GetParameterValue.c b/src/libhdl/hdl_RMU_Realm_GetParameterValue.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_GetParameterValue(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_Info.c b/src/libhdl/hdl_RMU_Realm_Info.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_Info(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_Initialize.c b/src/libhdl/hdl_RMU_Realm_Initialize.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_Initialize(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_Invalidate.c b/src/libhdl/hdl_RMU_Realm_Invalidate.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_Invalidate(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_InvalidateCurrent.c b/src/libhdl/hdl_RMU_Realm_InvalidateCurrent.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_InvalidateCurrent(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_Populate.c b/src/libhdl/hdl_RMU_Realm_Populate.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_Populate(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_Prepare.c b/src/libhdl/hdl_RMU_Realm_Prepare.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_Prepare(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_ReadMemory.c b/src/libhdl/hdl_RMU_Realm_ReadMemory.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_ReadMemory(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_Register.c b/src/libhdl/hdl_RMU_Realm_Register.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_Register(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_Release.c b/src/libhdl/hdl_RMU_Realm_Release.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_Release(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_SetBindingKeySeedLock.c b/src/libhdl/hdl_RMU_Realm_SetBindingKeySeedLock.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_SetBindingKeySeedLock(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_SetCommandTrap.c b/src/libhdl/hdl_RMU_Realm_SetCommandTrap.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_SetCommandTrap(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_SetMetadata.c b/src/libhdl/hdl_RMU_Realm_SetMetadata.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_SetMetadata(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_SetParameterInheritance.c b/src/libhdl/hdl_RMU_Realm_SetParameterInheritance.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_SetParameterInheritance(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_SetParameterValue.c b/src/libhdl/hdl_RMU_Realm_SetParameterValue.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_SetParameterValue(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_Realm_WriteMemory.c b/src/libhdl/hdl_RMU_Realm_WriteMemory.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_Realm_WriteMemory(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_System_Enable.c b/src/libhdl/hdl_RMU_System_Enable.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_System_Enable(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_System_InterfaceVersion.c b/src/libhdl/hdl_RMU_System_InterfaceVersion.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_System_InterfaceVersion(Rmucmd *cmd) +{ + panic("not implemented"); +} diff --git a/src/libhdl/hdl_RMU_System_Status.c b/src/libhdl/hdl_RMU_System_Status.c @@ -0,0 +1,7 @@ +#include <rcode.h> + +void +hdl_RMU_System_Status(Rmucmd *cmd) +{ + panic("not implemented"); +}