Commit 29a9af60 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Andi Kleen

[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: default avatarArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
CC: Andi Kleen <ak@suse.de>
parent 027a51ce
...@@ -9,13 +9,14 @@ ...@@ -9,13 +9,14 @@
/* Per processor datastructure. %gs points to it while the kernel runs */ /* Per processor datastructure. %gs points to it while the kernel runs */
struct x8664_pda { struct x8664_pda {
struct task_struct *pcurrent; /* Current process */ struct task_struct *pcurrent; /* 0 Current process */
unsigned long data_offset; /* Per cpu data offset from linker address */ unsigned long data_offset; /* 8 Per cpu data offset from linker
unsigned long kernelstack; /* top of kernel stack for current */ address */
unsigned long oldrsp; /* user rsp for system call */ unsigned long kernelstack; /* 16 top of kernel stack for current */
int irqcount; /* Irq nesting counter. Starts with -1 */ unsigned long oldrsp; /* 24 user rsp for system call */
int cpunumber; /* Logical CPU number */ int irqcount; /* 32 Irq nesting counter. Starts with -1 */
char *irqstackptr; /* top of irqstack */ int cpunumber; /* 36 Logical CPU number */
char *irqstackptr; /* 40 top of irqstack */
int nodenumber; /* number of current node */ int nodenumber; /* number of current node */
unsigned int __softirq_pending; unsigned int __softirq_pending;
unsigned int __nmi_count; /* number of NMI on this CPUs */ unsigned int __nmi_count; /* number of NMI on this CPUs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment