[PATCH 1/7] entry: Move exit to usermode functions to header file