• Vineet Gupta's avatar
    ARC: syscall for userspace cmpxchg assist · 91e040a7
    Vineet Gupta authored
    Older ARC700 cores (ARC750 specifically) lack instructions to implement
    atomic r-w-w. This is problematic for userspace libraries such as NPTL
    which need atomic primitives. So enable them by providing kernel assist.
    This is costly but really the only sane soluton (othern than tight
    spinning using the otherwise availiable atomic exchange EX instruciton).
    
    Good thing is there are only a few of these cores running Linux out in
    the wild.
    
    This only works on UP systems.
    Reviewed-by: default avatarColin Ian King <colin.king@canonical.com>
    Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
    91e040a7
process.c 6.04 KB