11991Sheppo /* 21991Sheppo * CDDL HEADER START 31991Sheppo * 41991Sheppo * The contents of this file are subject to the terms of the 51991Sheppo * Common Development and Distribution License (the "License"). 61991Sheppo * You may not use this file except in compliance with the License. 71991Sheppo * 81991Sheppo * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91991Sheppo * or http://www.opensolaris.org/os/licensing. 101991Sheppo * See the License for the specific language governing permissions 111991Sheppo * and limitations under the License. 121991Sheppo * 131991Sheppo * When distributing Covered Code, include this CDDL HEADER in each 141991Sheppo * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151991Sheppo * If applicable, add the following below this CDDL HEADER, with the 161991Sheppo * fields enclosed by brackets "[]" replaced with your own identifying 171991Sheppo * information: Portions Copyright [yyyy] [name of copyright owner] 181991Sheppo * 191991Sheppo * CDDL HEADER END 201991Sheppo */ 211991Sheppo 221991Sheppo /* 23*4776Sjm22469 * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 241991Sheppo * Use is subject to license terms. 251991Sheppo */ 261991Sheppo 271991Sheppo #pragma ident "%Z%%M% %I% %E% SMI" 281991Sheppo 291991Sheppo #include <sys/promif_impl.h> 301991Sheppo #include <sys/hypervisor_api.h> 311991Sheppo 321991Sheppo /* 33*4776Sjm22469 * By the time we reach this function we are single-threaded and 34*4776Sjm22469 * running at a high interrupt level. It is too late to send 35*4776Sjm22469 * the boot args to LDoms Manager. This is now done earlier -- 36*4776Sjm22469 * see mdboot(), and thus the arg to this function is ignored. 371991Sheppo */ 38*4776Sjm22469 39*4776Sjm22469 /*ARGSUSED*/ 401991Sheppo int promif_reboot(void * p)411991Sheppopromif_reboot(void *p) 421991Sheppo { 431991Sheppo int rv = 0; 441991Sheppo 451991Sheppo prom_printf("Resetting...\n"); 461991Sheppo 471991Sheppo rv = hv_mach_sir(); 481991Sheppo 491991Sheppo /* should not return */ 501991Sheppo ASSERT(0); 511991Sheppo 521991Sheppo return (rv); 531991Sheppo } 54