lkml.org 
[lkml]   [2015]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 0/3] Add __ioread32_copy() and use it
    > __iowrite32_copy() is marked __visible.  I don't actually know what
    > that does and Andi's d47d5c8194579bc changelog (which sucks the big
    > one) didn't explain it. Apparently it has something to do with being
    > implemented in assembly, but zillions of functions are implemented in
    > assembly, so why are only two functions marked this way? Anyway,
    > __ioread32_copy() is implemented in C so I guess __visible isn't needed
    > there.

    __visible is needed for C functions that are called from assembler.
    Otherwise the compiler may optimize them away.

    -Andi


    \
     
     \ /
      Last update: 2015-09-16 04:41    [W:3.495 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site