Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FlightOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Armin Luntzer
FlightOS
Commits
572f2500
Commit
572f2500
authored
8 years ago
by
Armin Luntzer
Browse files
Options
Downloads
Patches
Plain Diff
remove test module
parent
d093b800
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
init/main.c
+2
-2
2 additions, 2 deletions
init/main.c
kernel/Makefile
+0
-2
0 additions, 2 deletions
kernel/Makefile
kernel/testmodule.c
+0
-31
0 additions, 31 deletions
kernel/testmodule.c
with
2 additions
and
35 deletions
init/main.c
+
2
−
2
View file @
572f2500
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
kernel/Makefile
+
0
−
2
View file @
572f2500
...
...
@@ -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
This diff is collapsed.
Click to expand it.
kernel/testmodule.c
deleted
100644 → 0
+
0
−
31
View file @
d093b800
/**
* @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
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment