Searched hist:"3 e5d8f978435bb9ba4dfe3f4514e65e7885db1a9" (Results 1 – 4 of 4) sorted by relevance
/linux/include/asm-generic/ |
H A D | sections.h | diff 3e5d8f978435bb9ba4dfe3f4514e65e7885db1a9 Tue Jan 13 12:41:35 CET 2009 Tejun Heo <tj@kernel.org> x86: make percpu symbols zerobased on SMP
[ Based on original patch from Christoph Lameter and Mike Travis. ]
This patch makes percpu symbols zerobased on x86_64 SMP by adding PERCPU_VADDR() to vmlinux.lds.h which helps setting explicit vaddr on the percpu output section and using it in vmlinux_64.lds.S. A new PHDR is added as existing ones cannot contain sections near address zero. PERCPU_VADDR() also adds a new symbol __per_cpu_load which always points to the vaddr of the loaded percpu data.init region.
The following adjustments have been made to accomodate the address change.
* code to locate percpu gdt_page in head_64.S is updated to add the load address to the gdt_page offset.
* __per_cpu_load is used in places where access to the init data area is necessary.
* pda->data_offset is initialized soon after C code is entered as zero value doesn't work anymore.
This patch is mostly taken from Mike Travis' "x86_64: Base percpu variables at zero" patch.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
|
H A D | vmlinux.lds.h | diff 3e5d8f978435bb9ba4dfe3f4514e65e7885db1a9 Tue Jan 13 12:41:35 CET 2009 Tejun Heo <tj@kernel.org> x86: make percpu symbols zerobased on SMP
[ Based on original patch from Christoph Lameter and Mike Travis. ]
This patch makes percpu symbols zerobased on x86_64 SMP by adding PERCPU_VADDR() to vmlinux.lds.h which helps setting explicit vaddr on the percpu output section and using it in vmlinux_64.lds.S. A new PHDR is added as existing ones cannot contain sections near address zero. PERCPU_VADDR() also adds a new symbol __per_cpu_load which always points to the vaddr of the loaded percpu data.init region.
The following adjustments have been made to accomodate the address change.
* code to locate percpu gdt_page in head_64.S is updated to add the load address to the gdt_page offset.
* __per_cpu_load is used in places where access to the init data area is necessary.
* pda->data_offset is initialized soon after C code is entered as zero value doesn't work anymore.
This patch is mostly taken from Mike Travis' "x86_64: Base percpu variables at zero" patch.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
|
/linux/arch/x86/kernel/ |
H A D | setup_percpu.c | diff 3e5d8f978435bb9ba4dfe3f4514e65e7885db1a9 Tue Jan 13 12:41:35 CET 2009 Tejun Heo <tj@kernel.org> x86: make percpu symbols zerobased on SMP
[ Based on original patch from Christoph Lameter and Mike Travis. ]
This patch makes percpu symbols zerobased on x86_64 SMP by adding PERCPU_VADDR() to vmlinux.lds.h which helps setting explicit vaddr on the percpu output section and using it in vmlinux_64.lds.S. A new PHDR is added as existing ones cannot contain sections near address zero. PERCPU_VADDR() also adds a new symbol __per_cpu_load which always points to the vaddr of the loaded percpu data.init region.
The following adjustments have been made to accomodate the address change.
* code to locate percpu gdt_page in head_64.S is updated to add the load address to the gdt_page offset.
* __per_cpu_load is used in places where access to the init data area is necessary.
* pda->data_offset is initialized soon after C code is entered as zero value doesn't work anymore.
This patch is mostly taken from Mike Travis' "x86_64: Base percpu variables at zero" patch.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
|
H A D | head64.c | diff 3e5d8f978435bb9ba4dfe3f4514e65e7885db1a9 Tue Jan 13 12:41:35 CET 2009 Tejun Heo <tj@kernel.org> x86: make percpu symbols zerobased on SMP
[ Based on original patch from Christoph Lameter and Mike Travis. ]
This patch makes percpu symbols zerobased on x86_64 SMP by adding PERCPU_VADDR() to vmlinux.lds.h which helps setting explicit vaddr on the percpu output section and using it in vmlinux_64.lds.S. A new PHDR is added as existing ones cannot contain sections near address zero. PERCPU_VADDR() also adds a new symbol __per_cpu_load which always points to the vaddr of the loaded percpu data.init region.
The following adjustments have been made to accomodate the address change.
* code to locate percpu gdt_page in head_64.S is updated to add the load address to the gdt_page offset.
* __per_cpu_load is used in places where access to the init data area is necessary.
* pda->data_offset is initialized soon after C code is entered as zero value doesn't work anymore.
This patch is mostly taken from Mike Travis' "x86_64: Base percpu variables at zero" patch.
Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
|