promif_reboot.c revision 22e19ac1a2d512ea8d74e4f3662c08787d0716b1
177N/A/*
177N/A * CDDL HEADER START
177N/A *
177N/A * The contents of this file are subject to the terms of the
177N/A * Common Development and Distribution License (the "License").
177N/A * You may not use this file except in compliance with the License.
177N/A *
177N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
177N/A * or http://www.opensolaris.org/os/licensing.
177N/A * See the License for the specific language governing permissions
177N/A * and limitations under the License.
177N/A *
177N/A * When distributing Covered Code, include this CDDL HEADER in each
177N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
177N/A * If applicable, add the following below this CDDL HEADER, with the
177N/A * fields enclosed by brackets "[]" replaced with your own identifying
177N/A * information: Portions Copyright [yyyy] [name of copyright owner]
177N/A *
177N/A * CDDL HEADER END
177N/A */
177N/A
177N/A/*
177N/A * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
177N/A * Use is subject to license terms.
177N/A */
177N/A
177N/A#pragma ident "%Z%%M% %I% %E% SMI"
177N/A
177N/A#include <sys/promif_impl.h>
177N/A#include <sys/hypervisor_api.h>
177N/A
177N/A/*
177N/A * By the time we reach this function we are single-threaded and
177N/A * running at a high interrupt level. It is too late to send
177N/A * the boot args to LDoms Manager. This is now done earlier --
177N/A * see mdboot(), and thus the arg to this function is ignored.
177N/A */
177N/A
177N/A/*ARGSUSED*/
177N/Aint
177N/Apromif_reboot(void *p)
177N/A{
177N/A int rv = 0;
177N/A
177N/A prom_printf("Resetting...\n");
177N/A
177N/A rv = hv_mach_sir();
177N/A
177N/A /* should not return */
177N/A ASSERT(0);
177N/A
177N/A return (rv);
177N/A}
177N/A