[RFC PATCH 0/3] Unify implementation of cleanup_before_linux() for RISC-V ports