summaryrefslogtreecommitdiffstats
path: root/procedures
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-03-09 15:06:23 -0600
committerMatt Spinler <spinler@us.ibm.com>2017-03-14 15:37:27 -0500
commitd9bdcf729783afbd32ec8d030cd49455dff88e9b (patch)
tree551937e94b86854e88ed7a5e1d3fb627f0ffc347 /procedures
parent83e37327235e0f5eb39d4d66c16d72833394615d (diff)
downloadopenpower-proc-control-d9bdcf729783afbd32ec8d030cd49455dff88e9b.tar.gz
openpower-proc-control-d9bdcf729783afbd32ec8d030cd49455dff88e9b.zip
Register procedures
For a procedure to be available to run, it needs to have a call to a REGISTER_PROCEDURE macro. This macro wraps a call to a Register class that adds the procedure to the list along with the name to call it. Change-Id: I20d02e8f004c1c726228469465ae89b60ee52d66 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'procedures')
-rw-r--r--procedures/p9/start_host.cpp2
-rw-r--r--procedures/p9/vcs_workaround.cpp3
2 files changed, 5 insertions, 0 deletions
diff --git a/procedures/p9/start_host.cpp b/procedures/p9/start_host.cpp
index f781e68..a31503b 100644
--- a/procedures/p9/start_host.cpp
+++ b/procedures/p9/start_host.cpp
@@ -16,6 +16,7 @@
#include <phosphor-logging/log.hpp>
#include "cfam_access.hpp"
#include "p9_cfam.hpp"
+#include "registration.hpp"
#include "targeting.hpp"
namespace openpower
@@ -71,6 +72,7 @@ void startHost()
writeRegWithMask(master, P9_CBS_CS, 0x80000000, 0x80000000);
}
+REGISTER_PROCEDURE("startHost", startHost);
}
}
diff --git a/procedures/p9/vcs_workaround.cpp b/procedures/p9/vcs_workaround.cpp
index 64b41c1..07e7fd0 100644
--- a/procedures/p9/vcs_workaround.cpp
+++ b/procedures/p9/vcs_workaround.cpp
@@ -16,6 +16,7 @@
#include <phosphor-logging/log.hpp>
#include "cfam_access.hpp"
#include "p9_cfam.hpp"
+#include "registration.hpp"
#include "targeting.hpp"
namespace openpower
@@ -60,5 +61,7 @@ void vcsWorkaround()
}
}
+REGISTER_PROCEDURE("vcsWorkaround", vcsWorkaround);
+
}
}
OpenPOWER on IntegriCloud