[lkml]   [1997]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Why does this break under SMP?
    Olaf Titz wrote:
    > > this happened just enough times to do something about it. How hard is it
    > > to add an SMP/Uniprocessor flag to modules? [or is it already done ;)]
    > What's needed is an SMP "flag" in <linux/version.h> in a form that can
    > be picked up at compile time. Perhaps like
    > #ifndef __SMP__
    > #error "SMP kernel needs compilation with __SMP__"
    > #endif
    > on SMP machines?

    The kernel and modules may have been compiled at different times.

    How about defining an external symbol in the kernel, kernel_is_SMP or
    kernel_is_UNI. Then have SMP modules refer to kernel_is_SMP, so you
    would get an undefined reference if you attempted to load a
    non-matching module.


    > olaf

     \ /
      Last update: 2005-03-22 13:40    [W:0.018 / U:47.280 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site