diff options
Diffstat (limited to 'runtime/user/emul.h')
-rw-r--r-- | runtime/user/emul.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/user/emul.h b/runtime/user/emul.h index d6f0853e..3086a666 100644 --- a/runtime/user/emul.h +++ b/runtime/user/emul.h @@ -14,3 +14,19 @@ int vscnprintf(char *buf, size_t size, const char *fmt, va_list args) #include <stdarg.h> unsigned long strtoul(const char *nptr, char **endptr, int base); #define simple_strtoul strtoul + +#define KALLSYMS_LOOKUP kallsyms_lookup + +const char *kallsyms_lookup (unsigned long addr, + unsigned long *symbolsize, + unsigned long *offset, + char **modname, + char *namebuf) +{ + static char buf[32]; + sprintf (namebuf, "foobar"); + sprintf (buf, "foobar_mod"); + *offset = 1; + modname = (char **)&buf; + return namebuf; +} |