lkml.org 
[lkml]   [2008]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC] [PATCH] x86: Use ELF section to list CPU vendor specific code (Linux Tiny)
    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:
    >
    > 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.
    >

    Indeed, we already have enough instances of this kind of stuff.

    -hpa


    \
     
     \ /
      Last update: 2008-02-23 04:23    [W:0.020 / U:30.420 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site