summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2006-09-26 10:52:38 +0200
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 10:52:38 +0200
commit29a9af60e2120f874d0c600bf9e27617254a0488 (patch)
tree90b4309599fa1081d58d0312c94e899eaf18f115
parent027a51cef330433ba5924fc92fb25ef48bcfc1a3 (diff)
downloadblackbird-op-linux-29a9af60e2120f874d0c600bf9e27617254a0488.tar.gz
blackbird-op-linux-29a9af60e2120f874d0c600bf9e27617254a0488.zip
[PATCH] Add comments to the PDA structure to annotate offsets
Change the comments in the pda structure to make the first fields to have their offset documented and to have the comments aligned. The stack protector series needs a field at offset 40 (gcc ABI); annotate upto 40 for that reason. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andi Kleen <ak@suse.de> CC: Andi Kleen <ak@suse.de>
-rw-r--r--include/asm-x86_64/pda.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/asm-x86_64/pda.h b/include/asm-x86_64/pda.h
index e2b23e337b94..6794ffaae433 100644
--- a/include/asm-x86_64/pda.h
+++ b/include/asm-x86_64/pda.h
@@ -9,13 +9,14 @@
/* Per processor datastructure. %gs points to it while the kernel runs */
struct x8664_pda {
- struct task_struct *pcurrent; /* Current process */
- unsigned long data_offset; /* Per cpu data offset from linker address */
- unsigned long kernelstack; /* top of kernel stack for current */
- unsigned long oldrsp; /* user rsp for system call */
- int irqcount; /* Irq nesting counter. Starts with -1 */
- int cpunumber; /* Logical CPU number */
- char *irqstackptr; /* top of irqstack */
+ struct task_struct *pcurrent; /* 0 Current process */
+ unsigned long data_offset; /* 8 Per cpu data offset from linker
+ address */
+ unsigned long kernelstack; /* 16 top of kernel stack for current */
+ unsigned long oldrsp; /* 24 user rsp for system call */
+ int irqcount; /* 32 Irq nesting counter. Starts with -1 */
+ int cpunumber; /* 36 Logical CPU number */
+ char *irqstackptr; /* 40 top of irqstack */
int nodenumber; /* number of current node */
unsigned int __softirq_pending;
unsigned int __nmi_count; /* number of NMI on this CPUs */
OpenPOWER on IntegriCloud