41c79dc382
Even if with a bit of misunderstanding, Al fixed this in commit
95608261da
.
Well, the symbol was intended to come from userspace (it exists there on normal
host), but since some hosts may miss that, using the kernel one is just as fine.
However, rename it to be named consistently with the rest.
Actually, he missed converting ELFCLASS32 to coming from kernel headers. For
consistence, add ELFCLASS64 too.
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
17 lines
619 B
C
17 lines
619 B
C
/* for use by sys-$SUBARCH/kernel-offsets.c */
|
|
|
|
OFFSET(TASK_REGS, task_struct, thread.regs);
|
|
OFFSET(TASK_PID, task_struct, pid);
|
|
DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
|
|
DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
|
|
DEFINE_STR(UM_KERN_EMERG, KERN_EMERG);
|
|
DEFINE_STR(UM_KERN_ALERT, KERN_ALERT);
|
|
DEFINE_STR(UM_KERN_CRIT, KERN_CRIT);
|
|
DEFINE_STR(UM_KERN_ERR, KERN_ERR);
|
|
DEFINE_STR(UM_KERN_WARNING, KERN_WARNING);
|
|
DEFINE_STR(UM_KERN_NOTICE, KERN_NOTICE);
|
|
DEFINE_STR(UM_KERN_INFO, KERN_INFO);
|
|
DEFINE_STR(UM_KERN_DEBUG, KERN_DEBUG);
|
|
DEFINE(UM_ELF_CLASS, ELF_CLASS);
|
|
DEFINE(UM_ELFCLASS32, ELFCLASS32);
|
|
DEFINE(UM_ELFCLASS64, ELFCLASS64);
|