1 /* 2 * Copyright 2019 The Hafnium Authors. 3 * 4 * Use of this source code is governed by a BSD-style 5 * license that can be found in the LICENSE file or at 6 * https://opensource.org/licenses/BSD-3-Clause. 7 */ 8 9 #include "hf/arch/vm/power_mgmt.h" 10 11 #include <sys/reboot.h> 12 arch_power_off(void)13noreturn void arch_power_off(void) 14 { 15 reboot(RB_POWER_OFF); 16 for (;;) { 17 /* This should never be reached. */ 18 } 19 } 20