Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-25 Thread Matt Mackall
On Mon, 2008-02-25 at 18:53 +0100, Thomas Petazzoni wrote: > Le Mon, 25 Feb 2008 09:03:12 -0800, > Matt Mackall <[EMAIL PROTECTED]> a écrit : > > > > > This is not quite what Peter and I were thinking of, I think. > > > > It's not at all generic. How about a section that simply contains > > > >

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-25 Thread Thomas Petazzoni
Le Mon, 25 Feb 2008 09:03:12 -0800, Matt Mackall <[EMAIL PROTECTED]> a écrit : > > > This is not quite what Peter and I were thinking of, I think. > > > It's not at all generic. How about a section that simply contains > > > a set of function pointers, a macro to add things to that > > > section,

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-25 Thread Matt Mackall
On Mon, 2008-02-25 at 09:29 +0100, Thomas Petazzoni wrote: > Le Sat, 23 Feb 2008 10:43:37 +0800, > Matt Mackall <[EMAIL PROTECTED]> a écrit : > > > This is not quite what Peter and I were thinking of, I think. It's not > > at all generic. How about a section that simply contains a set of > >

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-25 Thread Thomas Petazzoni
Le Sat, 23 Feb 2008 10:43:37 +0800, Matt Mackall <[EMAIL PROTECTED]> a écrit : > This is not quite what Peter and I were thinking of, I think. It's not > at all generic. How about a section that simply contains a set of > function pointers, a macro to add things to that section, and a > function

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-25 Thread Thomas Petazzoni
Le Sat, 23 Feb 2008 10:43:37 +0800, Matt Mackall [EMAIL PROTECTED] a écrit : This is not quite what Peter and I were thinking of, I think. It's not at all generic. How about a section that simply contains a set of function pointers, a macro to add things to that section, and a function that

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-25 Thread Matt Mackall
On Mon, 2008-02-25 at 09:29 +0100, Thomas Petazzoni wrote: Le Sat, 23 Feb 2008 10:43:37 +0800, Matt Mackall [EMAIL PROTECTED] a écrit : This is not quite what Peter and I were thinking of, I think. It's not at all generic. How about a section that simply contains a set of function

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-25 Thread Thomas Petazzoni
Le Mon, 25 Feb 2008 09:03:12 -0800, Matt Mackall [EMAIL PROTECTED] a écrit : This is not quite what Peter and I were thinking of, I think. It's not at all generic. How about a section that simply contains a set of function pointers, a macro to add things to that section, and a

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-25 Thread Matt Mackall
On Mon, 2008-02-25 at 18:53 +0100, Thomas Petazzoni wrote: Le Mon, 25 Feb 2008 09:03:12 -0800, Matt Mackall [EMAIL PROTECTED] a écrit : This is not quite what Peter and I were thinking of, I think. It's not at all generic. How about a section that simply contains a set of function

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-22 Thread H. Peter Anvin
Matt Mackall wrote: This is not quite what Peter and I were thinking of, I think. It's not at all generic. How about a section that simply contains a set of function pointers, a macro to add things to that section, and a function that calls all the pointers in that section. Eg:

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-22 Thread Matt Mackall
On Fri, 2008-02-15 at 12:00 +0100, Thomas Petazzoni wrote: > Hi, > > Le Mon, 11 Feb 2008 16:54:30 -0800, > "H. Peter Anvin" <[EMAIL PROTECTED]> a écrit : > > > b) would be my first choice, and yes, it would be a good thing to > > have a generalized mechanism for this. For the registrant, it's

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-22 Thread Matt Mackall
On Fri, 2008-02-15 at 12:00 +0100, Thomas Petazzoni wrote: Hi, Le Mon, 11 Feb 2008 16:54:30 -0800, H. Peter Anvin [EMAIL PROTECTED] a écrit : b) would be my first choice, and yes, it would be a good thing to have a generalized mechanism for this. For the registrant, it's pretty

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-22 Thread H. Peter Anvin
Matt Mackall wrote: This is not quite what Peter and I were thinking of, I think. It's not at all generic. How about a section that simply contains a set of function pointers, a macro to add things to that section, and a function that calls all the pointers in that section. Eg:

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-17 Thread H. Peter Anvin
Ingo Molnar wrote: * Thomas Petazzoni <[EMAIL PROTECTED]> wrote: Le Mon, 11 Feb 2008 16:54:30 -0800, "H. Peter Anvin" <[EMAIL PROTECTED]> a écrit : b) would be my first choice, and yes, it would be a good thing to have a generalized mechanism for this. For the registrant, it's pretty easy:

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-17 Thread Ingo Molnar
* Thomas Petazzoni <[EMAIL PROTECTED]> wrote: > Le Mon, 11 Feb 2008 16:54:30 -0800, > "H. Peter Anvin" <[EMAIL PROTECTED]> a écrit : > > > b) would be my first choice, and yes, it would be a good thing to > > have a generalized mechanism for this. For the registrant, it's > > pretty easy: just

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-17 Thread Ingo Molnar
* Thomas Petazzoni [EMAIL PROTECTED] wrote: Le Mon, 11 Feb 2008 16:54:30 -0800, H. Peter Anvin [EMAIL PROTECTED] a écrit : b) would be my first choice, and yes, it would be a good thing to have a generalized mechanism for this. For the registrant, it's pretty easy: just add a macro

Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-17 Thread H. Peter Anvin
Ingo Molnar wrote: * Thomas Petazzoni [EMAIL PROTECTED] wrote: Le Mon, 11 Feb 2008 16:54:30 -0800, H. Peter Anvin [EMAIL PROTECTED] a écrit : b) would be my first choice, and yes, it would be a good thing to have a generalized mechanism for this. For the registrant, it's pretty easy: just

[RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-15 Thread Thomas Petazzoni
Hi, Le Mon, 11 Feb 2008 16:54:30 -0800, "H. Peter Anvin" <[EMAIL PROTECTED]> a écrit : > b) would be my first choice, and yes, it would be a good thing to > have a generalized mechanism for this. For the registrant, it's > pretty easy: just add a macro that adds a pointer to a named > section.

[RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)

2008-02-15 Thread Thomas Petazzoni
Hi, Le Mon, 11 Feb 2008 16:54:30 -0800, H. Peter Anvin [EMAIL PROTECTED] a écrit : b) would be my first choice, and yes, it would be a good thing to have a generalized mechanism for this. For the registrant, it's pretty easy: just add a macro that adds a pointer to a named section. We then