aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2006-09-26 04:52:38 -0400
committerAndi Kleen <andi@basil.nowhere.org>2006-09-26 04:52:38 -0400
commit29a9af60e2120f874d0c600bf9e27617254a0488 (patch)
tree90b4309599fa1081d58d0312c94e899eaf18f115 /include/asm-x86_64
parent027a51cef330433ba5924fc92fb25ef48bcfc1a3 (diff)
[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>
Diffstat (limited to 'include/asm-x86_64')
-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 @@
9 9
10/* Per processor datastructure. %gs points to it while the kernel runs */ 10/* Per processor datastructure. %gs points to it while the kernel runs */
11struct x8664_pda { 11struct x8664_pda {
12 struct task_struct *pcurrent; /* Current process */ 12 struct task_struct *pcurrent; /* 0 Current process */
13 unsigned long data_offset; /* Per cpu data offset from linker address */ 13 unsigned long data_offset; /* 8 Per cpu data offset from linker
14 unsigned long kernelstack; /* top of kernel stack for current */ 14 address */
15 unsigned long oldrsp; /* user rsp for system call */ 15 unsigned long kernelstack; /* 16 top of kernel stack for current */
16 int irqcount; /* Irq nesting counter. Starts with -1 */ 16 unsigned long oldrsp; /* 24 user rsp for system call */
17 int cpunumber; /* Logical CPU number */ 17 int irqcount; /* 32 Irq nesting counter. Starts with -1 */
18 char *irqstackptr; /* top of irqstack */ 18 int cpunumber; /* 36 Logical CPU number */
19 char *irqstackptr; /* 40 top of irqstack */
19 int nodenumber; /* number of current node */ 20 int nodenumber; /* number of current node */
20 unsigned int __softirq_pending; 21 unsigned int __softirq_pending;
21 unsigned int __nmi_count; /* number of NMI on this CPUs */ 22 unsigned int __nmi_count; /* number of NMI on this CPUs */