diff --git a/loader.cc b/loader.cc index 864a5b7d87df75d92119a93195604f0285b2ecf3..5e834c51778818807c0f2fb67f7211b810cb9c1c 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 548d5b5785339f9ec5d3cb3f8cb30b40b38798b2..4862a9ac39e1640f77f78d8e5d910344ab150971 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 0000000000000000000000000000000000000000..a9a3ca1615cd899ed290fedac36fe3cdcb92b597 --- /dev/null +++ b/net/net.hh @@ -0,0 +1,8 @@ +#ifndef NET_HH +#define NET_HH + +void test_mbuf(void); + + +#endif // NET_HH +