[PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-04-30 Thread Tim Abbott
This patch is preparation for replacing most uses of ".bss.page_aligned" and ".data.page_aligned" in the kernel with macros, so that the section name can later be changed without having to touch a lot of the kernel. The long-term goal here is to be able to change the kernel's magic section names t

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread Sam Ravnborg
On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: > This patch is preparation for replacing most uses of > ".bss.page_aligned" and ".data.page_aligned" in the kernel with > macros, so that the section name can later be changed without having > to touch a lot of the kernel. > > The long-t

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread Tim Abbott
On Fri, 1 May 2009, Sam Ravnborg wrote: > On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: > > +#define __PAGE_ALIGNED_DATA.section ".data.page_aligned", "aw", > > @progbits > > +#define __PAGE_ALIGNED_BSS .section ".bss.page_aligned", "aw", @nobits > > It is my understanding

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread H. Peter Anvin
Tim Abbott wrote: > On Fri, 1 May 2009, Sam Ravnborg wrote: > >> On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: >>> +#define __PAGE_ALIGNED_DATA.section ".data.page_aligned", "aw", >>> @progbits >>> +#define __PAGE_ALIGNED_BSS .section ".bss.page_aligned", "aw", @nobits >> It

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread Sam Ravnborg
On Fri, May 01, 2009 at 09:33:13AM -0700, H. Peter Anvin wrote: > Tim Abbott wrote: > > On Fri, 1 May 2009, Sam Ravnborg wrote: > > > >> On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: > >>> +#define __PAGE_ALIGNED_DATA .section ".data.page_aligned", "aw", > >>> @progbits > >>> +

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread H. Peter Anvin
Sam Ravnborg wrote: > On Fri, May 01, 2009 at 09:33:13AM -0700, H. Peter Anvin wrote: >> Tim Abbott wrote: >>> On Fri, 1 May 2009, Sam Ravnborg wrote: >>> On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: > +#define __PAGE_ALIGNED_DATA .section ".data.page_aligned", "aw", >

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread Sam Ravnborg
On Fri, May 01, 2009 at 10:18:20AM -0700, H. Peter Anvin wrote: > Sam Ravnborg wrote: > > On Fri, May 01, 2009 at 09:33:13AM -0700, H. Peter Anvin wrote: > >> Tim Abbott wrote: > >>> On Fri, 1 May 2009, Sam Ravnborg wrote: > >>> > On Thu, Apr 30, 2009 at 03:54:08PM -0400, Tim Abbott wrote: > >

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread H. Peter Anvin
Sam Ravnborg wrote: >> >> What's wrong with @? > arm does not support it :-( > I recall it denote a comment in arm assembler. > > I could do some magic to detect the ARM case but I'm reluctant to do so. > I could also ignore the arm issue for now as it is not used by arm, > but that strikes me as

Re: [PATCH v2 1/6] Add new macros for page-aligned data and bss sections.

2009-05-01 Thread Andreas Schwab
"H. Peter Anvin" writes: > Sam Ravnborg wrote: >>> >>> What's wrong with @? >> arm does not support it :-( >> I recall it denote a comment in arm assembler. >> >> I could do some magic to detect the ARM case but I'm reluctant to do so. >> I could also ignore the arm issue for now as it is not us