Skip to content
Snippets Groups Projects
Commit 572f2500 authored by Armin Luntzer's avatar Armin Luntzer
Browse files

remove test module

parent d093b800
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ int main(void)
/* look up a kernel symbol */
printk("%s at %p\n", "printk", lookup_symbol("printk"));
#if 0
/* look up a file in the embedded image */
printk("%s at %p\n", "testmodule.ko",
module_lookup_embedded("testmodule.ko"));
......@@ -63,7 +63,7 @@ int main(void)
if (addr)
module_load(&m, addr);
#endif
modules_list_loaded();
return 0;
......
......@@ -3,5 +3,3 @@ obj-y += ksym.o
obj-$(CONFIG_KERNEL_PRINTK) += printk.o
obj-y += bitmap.o
obj-y += module.o
obj-m += testmodule.o
obj-m += testchain.o
/**
* @file kernel/test.c
*/
#include <page.h>
#include <kernel/printk.h>
void somefunction(void)
{
printk("this is some function\n");
}
void _module_exit(void)
{
printk("cleaning up\n");
}
int _module_init(void)
{
int i;
printk("moopmoop\n");
for (i = 0; i < 10; i++)
printk("the cow says: %d\n", i);
printk("allocating: %p\n", page_alloc());
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment