Andi Kleen wrote:
This stuff is very basic, and you could consider it as being part of the kernel's C runtime model, and therefore can be expected to be available everywhere. In particular, the use of current is so prevalent that you really can't call anything without having the PDA set up.I managed to get all this done in head.S before going into C code; is that not still possible? Or is there a later patch to do this.Why write in assembler what you can write in C?
J - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 5/7] Use %gs for per-cpu sections in kernel
- From: Rusty Russell <[email protected]>
- Re: [PATCH 5/7] Use %gs for per-cpu sections in kernel
- References:
- [PATCH 0/7] Using %gs for per-cpu areas on x86
- From: Rusty Russell <[email protected]>
- [PATCH 1/7] Use per-cpu GDT tables from early in boot
- From: Rusty Russell <[email protected]>
- [PATCH 2/7]
- From: Rusty Russell <[email protected]>
- [PATCH 3/7] Update sys_vm86 to cope with changed pt_regs and %gs usage.
- From: Rusty Russell <[email protected]>
- [PATCH 4/7] Fix places where using %gs changes the usermode ABI.
- From: Rusty Russell <[email protected]>
- [PATCH 5/7] Use %gs for per-cpu sections in kernel
- From: Rusty Russell <[email protected]>
- Re: [PATCH 5/7] Use %gs for per-cpu sections in kernel
- From: Jeremy Fitzhardinge <[email protected]>
- Re: [PATCH 5/7] Use %gs for per-cpu sections in kernel
- From: Andi Kleen <[email protected]>
- [PATCH 0/7] Using %gs for per-cpu areas on x86
- Prev by Date: Re: [PATCH 5/7] Use %gs for per-cpu sections in kernel
- Next by Date: Re: [PATCH 00/03][RESUBMIT] net: EtherIP tunnel driver
- Previous by thread: Re: [PATCH 5/7] Use %gs for per-cpu sections in kernel
- Next by thread: Re: [PATCH 5/7] Use %gs for per-cpu sections in kernel
- Index(es):