Fixed function "function_reboot".

Now OS can reboot.