OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
538e236
)
parisc: add task_pt_regs macro
author
Kyle McMartin
<kyle@mcmartin.ca>
Wed, 24 Jun 2009 01:32:18 +0000
(21:32 -0400)
committer
Kyle McMartin
<kyle@mcmartin.ca>
Fri, 3 Jul 2009 03:34:11 +0000
(
03:34
+0000)
needed for perf_counters.
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
arch/parisc/include/asm/processor.h
patch
|
blob
|
history
diff --git
a/arch/parisc/include/asm/processor.h
b/arch/parisc/include/asm/processor.h
index
9d64df8
..
9ce66e9
100644
(file)
--- a/
arch/parisc/include/asm/processor.h
+++ b/
arch/parisc/include/asm/processor.h
@@
-18,6
+18,7
@@
#include <asm/types.h>
#include <asm/system.h>
#include <asm/percpu.h>
+
#endif /* __ASSEMBLY__ */
#define KERNEL_STACK_SIZE (4*PAGE_SIZE)
@@
-127,6
+128,8
@@
struct thread_struct {
unsigned long flags;
};
+#define task_pt_regs(tsk) ((struct pt_regs *)&((tsk)->thread.regs))
+
/* Thread struct flags. */
#define PARISC_UAC_NOPRINT (1UL << 0) /* see prctl and unaligned.c */
#define PARISC_UAC_SIGBUS (1UL << 1)