diff options
author | Adam Muhle <armuhle@us.ibm.com> | 2011-08-08 09:58:58 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2011-08-08 11:27:45 -0500 |
commit | 0709fbac11be8a30710a34dad5af5f37449d7255 (patch) | |
tree | 6877bc87d355a153bf79304c0a85b978d8920dda /src/usr/pnor | |
parent | df4b0117660700e195864b761dfe92dd3467c686 (diff) | |
download | talos-hostboot-0709fbac11be8a30710a34dad5af5f37449d7255.tar.gz talos-hostboot-0709fbac11be8a30710a34dad5af5f37449d7255.zip |
Create fakext "hello world" module to place in the extended image for
testing purposes.
Change-Id: I4a79fbf50aa3871ee60dd58d85ccfd509fdf06f4
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/232
Tested-by: Jenkins Server
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Diffstat (limited to 'src/usr/pnor')
-rw-r--r-- | src/usr/pnor/fakeext/fakeext.C | 43 | ||||
-rw-r--r-- | src/usr/pnor/fakeext/makefile | 6 | ||||
-rw-r--r-- | src/usr/pnor/makefile | 2 |
3 files changed, 50 insertions, 1 deletions
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 |