From ebd35d4cf3e39a04059fd98286ef45ec55c7705b Mon Sep 17 00:00:00 2001 From: Guy Zana <guy@cloudius-systems.com> Date: Thu, 31 Jan 2013 11:44:05 +0200 Subject: [PATCH] Connect the test with loader.cc --- loader.cc | 3 +++ net/net.cc | 4 ++++ net/net.hh | 8 ++++++++ 3 files changed, 15 insertions(+) create mode 100644 net/net.hh diff --git a/loader.cc b/loader.cc index 864a5b7d8..5e834c517 100644 --- a/loader.cc +++ b/loader.cc @@ -1,6 +1,7 @@ #include "drivers/isa-serial.hh" #include "fs/fs.hh" +#include "net/net.hh" #include <boost/format.hpp> #include <cctype> #include "elf.hh" @@ -144,6 +145,8 @@ int main(int ac, char **av) filesystem fs; + test_mbuf(); + disable_pic(); processor::sti(); diff --git a/net/net.cc b/net/net.cc index 548d5b578..4862a9ac3 100644 --- a/net/net.cc +++ b/net/net.cc @@ -1,3 +1,5 @@ +#include "debug.hh" + extern "C" { #include "mbuf.h" #include "param.h" @@ -7,5 +9,7 @@ extern void mbuf_init(void *dummy); void test_mbuf(void) { + debug("A"); mbuf_init(NULL); + debug("B"); } diff --git a/net/net.hh b/net/net.hh new file mode 100644 index 000000000..a9a3ca161 --- /dev/null +++ b/net/net.hh @@ -0,0 +1,8 @@ +#ifndef NET_HH +#define NET_HH + +void test_mbuf(void); + + +#endif // NET_HH + -- GitLab