[lkml]   [2005]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: out-of-line x86 "put_user()" implementation
    On Mon, Feb 07, 2005 at 05:20:06PM -0800, Linus Torvalds wrote:
    > +#define __put_user_8(x, ptr) __asm__ __volatile__("call __put_user_8":"=A" (__ret_pu):"0" ((typeof(*(ptr)))(x)), "c" (ptr))

    This is not constrained enough. The compiler could choose to put the
    return value in edx. You want

    __asm__ __volatile__("call __put_user_8":"=a" (__ret_pu)
    : "A" ((typeof(*(ptr)))(x)), "c" (ptr))

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:10    [W:0.019 / U:12.248 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site