summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/makefile2
-rw-r--r--src/usr/pnor/fakeext/fakeext.C43
-rw-r--r--src/usr/pnor/fakeext/makefile6
-rw-r--r--src/usr/pnor/makefile2
4 files changed, 51 insertions, 2 deletions
diff --git a/src/makefile b/src/makefile
index 5b4c95cfd..caa22a9d2 100644
--- a/src/makefile
+++ b/src/makefile
@@ -49,7 +49,7 @@ RELOCATABLE_IMAGE_LDFLAGS = -pie --export-dynamic
hbicore_OBJECTS = ${BASE_OBJECTS} ${DIRECT_BOOT_OBJECTS} ${STUB_TESTCASE_OBJECT}
hbicore_MODULES = ${BASE_MODULES} ${EXTENDED_MODULES} ${DIRECT_BOOT_MODULES}
-hbicore_EXTENDED_MODULES =
+hbicore_EXTENDED_MODULES = fakeext
hbicore_LIDNUMBER = 80f00100
hbicore_test_OBJECTS = ${BASE_OBJECTS} ${DIRECT_BOOT_OBJECTS}
diff --git a/src/usr/pnor/fakeext/fakeext.C b/src/usr/pnor/fakeext/fakeext.C
new file mode 100644
index 000000000..53deab9c0
--- /dev/null
+++ b/src/usr/pnor/fakeext/fakeext.C
@@ -0,0 +1,43 @@
+
+#include <trace/interface.H>
+#include <initservice/taskargs.H>
+
+
+// Trace definition
+trace_desc_t* g_trac_fakeext = NULL;
+TRAC_INIT(&g_trac_fakeext, "FAKE_EXT", 4096); //4k
+
+
+/**
+ * @brief Fake EXT test function 1
+ *
+ * @return void
+ */
+void fakeExtTest1(void* i_taskArgs )
+{
+ TRACFCOMP(g_trac_fakeext, "fakeExtTest1 called " );
+// INITSERVICE::TaskArgs::TaskArgs* args = (INITSERVICE::TaskArgs::TaskArgs*)i_taskArgs;
+
+ return;
+}
+
+
+/**
+ * @brief set up _start() task
+ */
+TASK_ENTRY_MACRO( fakeExtTest1 );
+
+
+
+/**
+ * @brief Fake EXT test function 2
+ *
+ * @return void
+ */
+void fakeExtTest2()
+{
+ TRACFCOMP(g_trac_fakeext, "fakeExtTest2 called " );
+
+ return;
+}
+
diff --git a/src/usr/pnor/fakeext/makefile b/src/usr/pnor/fakeext/makefile
new file mode 100644
index 000000000..190acab77
--- /dev/null
+++ b/src/usr/pnor/fakeext/makefile
@@ -0,0 +1,6 @@
+ROOTPATH = ../../../..
+
+MODULE = fakeext
+OBJS = fakeext.o
+
+include ${ROOTPATH}/config.mk
diff --git a/src/usr/pnor/makefile b/src/usr/pnor/makefile
index 0700f7554..61989e24e 100644
--- a/src/usr/pnor/makefile
+++ b/src/usr/pnor/makefile
@@ -3,6 +3,6 @@ MODULE = pnor
OBJS = pnorrp.o pnordd.o
-SUBDIRS = test.d
+SUBDIRS = test.d fakeext.d
include ${ROOTPATH}/config.mk
OpenPOWER on IntegriCloud