git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Code-base clean-up and refactoring (#47)
[lunaix-os.git]
/
lunaix-os
/
kernel
/
debug
/
trace.c
diff --git
a/lunaix-os/kernel/debug/trace.c
b/lunaix-os/kernel/debug/trace.c
index e238526717547c59461ec3e14af0aaefc232a4ed..77b332081adb652ea71f6f46508ac9fd977499d0 100644
(file)
--- a/
lunaix-os/kernel/debug/trace.c
+++ b/
lunaix-os/kernel/debug/trace.c
@@
-3,9
+3,10
@@
#include <lunaix/spike.h>
#include <lunaix/syslog.h>
#include <lunaix/trace.h>
#include <lunaix/spike.h>
#include <lunaix/syslog.h>
#include <lunaix/trace.h>
+#include <lunaix/sections.h>
-#include <
sys
/abi.h>
-#include <
sys/m
m/mm_defs.h>
+#include <
asm
/abi.h>
+#include <
as
m/mm_defs.h>
#include <sys/trace.h>
#include <klibc/string.h>
#include <sys/trace.h>
#include <klibc/string.h>
@@
-14,8
+15,7
@@
LOG_MODULE("TRACE")
LOG_MODULE("TRACE")
-weak struct ksyms __lunaix_ksymtable[] = { };
-extern struct ksyms __lunaix_ksymtable[];
+extern_autogen(ksymtable);
static struct trace_context trace_ctx;
static struct trace_context trace_ctx;
@@
-33,7
+33,7
@@
trace_log(const char* fmt, ...)
void
trace_modksyms_init(struct boot_handoff* bhctx)
{
void
trace_modksyms_init(struct boot_handoff* bhctx)
{
- trace_ctx.ksym_table =
__lunaix_ksymtable
;
+ trace_ctx.ksym_table =
autogen(struct ksyms, ksymtable)
;
}
struct ksym_entry*
}
struct ksym_entry*