• Chris Metcalf's avatar
    tile: avoid a "label not used" warning in do_page_fault() · 5316a64c
    Chris Metcalf authored
    There are two different ifdef cases where the label is used,
    but if neither is true, the label is unused and the compiler
    generates a warning.
    
    Refactor the code the way x86 does so that there is a
    do_page_fault() that just does exception handling for
    context tracking, and make __do_page_fault() a static inline
    so that various cases can just return instead of doing a
    jump to "done".
    Signed-off-by: default avatarChris Metcalf <cmetcalf@ezchip.com>
    5316a64c
fault.c 25.8 KB