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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Mackall
Date: Friday, February 22, 2008 - 7:43 pm

On Fri, 2008-02-15 at 12:00 +0100, Thomas Petazzoni 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:

CALLBACK_SECTION(init_cpu_amd, "cpuvendor.init");
invoke_callback_section("cpuvendor.init");

..which would give us a generic facility we could use in various places.

-- 
Mathematics is the supreme nostalgia of our time.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86 (Linux Tiny): configure out support for some p ..., Michael Opdenacker, (Fri Feb 8, 3:47 pm)
Re: [PATCH] x86 (Linux Tiny): configure out support for so ..., Michael Opdenacker, (Sat Feb 9, 2:26 am)
Re: [PATCH] x86 (Linux Tiny): configure out support for so ..., Michael Opdenacker, (Sat Feb 9, 2:29 am)
Re: [PATCH] x86 (Linux Tiny): configure out support for so ..., Michael Opdenacker, (Sat Feb 9, 2:31 am)
Re: [PATCH] x86 (Linux Tiny): configure out support for so ..., Michael Opdenacker, (Mon Feb 11, 3:42 pm)
Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor ..., Matt Mackall, (Fri Feb 22, 7:43 pm)
Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor ..., Thomas Petazzoni, (Mon Feb 25, 1:29 am)
Re: [RFC] [PATCH] x86: Use ELF section to list CPU vendor ..., Thomas Petazzoni, (Mon Feb 25, 10:53 am)