Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- From: "H. Peter Anvin" <hpa@xxxxxxxxx>
- Date: Tue, 01 Jul 2008 17:20:41 -0700
Jeremy Fitzhardinge wrote:
Yes, and there's no reason we couldn't do the same on 64-bit, aside from the stack-protector's use of %gs:40. There's no code-size cost in large offsets, since they're always 32-bits anyway (there's no short absolute addressing mode).
If we manually generate %gs-relative references to percpu data, then it's no different to what we do with 32-bit, whether it be a specific symbol address or using the TLS relocations.
If we think the problem is the zero-basing triggering linker bugs, we should probably just use a small offset, like 64 (put a small dummy section before the .percpu.data section to occupy this section.)
I'm going to play with this a bit and see if I come up with something sanish.
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- From: Mike Travis
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- References:
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- From: Eric W. Biederman
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- From: H. Peter Anvin
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- From: Jeremy Fitzhardinge
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- From: Eric W. Biederman
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- From: Jeremy Fitzhardinge
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- From: Eric W. Biederman
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- From: Jeremy Fitzhardinge
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- Prev by Date: Re: [PATCH 5/23] make section names compatible with -ffunction-sections -fdata-sections: blackfin
- Next by Date: RE: [PATCH 12/60] microblaze_v4: Generic dts file for platforms
- Previous by thread: Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- Next by thread: Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
- Index(es):