mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 09:56:46 +00:00
[PATCH] uml: add profile_pc for i386
Cope with a conditional i386 definition, which is wrong for UML. Before we just used that one, but it wasn't defined for CONFIG_SMP, so in that case we got link errors. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Cc: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
29d56cfe3c
commit
84dd8d7e9c
@ -32,6 +32,10 @@
|
|||||||
#define PT_REGS_SYSCALL_RET(r) PT_REGS_EAX(r)
|
#define PT_REGS_SYSCALL_RET(r) PT_REGS_EAX(r)
|
||||||
#define PT_FIX_EXEC_STACK(sp) do ; while(0)
|
#define PT_FIX_EXEC_STACK(sp) do ; while(0)
|
||||||
|
|
||||||
|
/* Cope with a conditional i386 definition. */
|
||||||
|
#undef profile_pc
|
||||||
|
#define profile_pc(regs) PT_REGS_IP(regs)
|
||||||
|
|
||||||
#define user_mode(r) UPT_IS_USER(&(r)->regs)
|
#define user_mode(r) UPT_IS_USER(&(r)->regs)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user