bootinfo.h revision 0181461b79a0991f2269dad3ef978086e6c70257
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * CDDL HEADER START
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * The contents of this file are subject to the terms of the
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * Common Development and Distribution License (the "License").
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * You may not use this file except in compliance with the License.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * See the License for the specific language governing permissions
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * and limitations under the License.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * When distributing Covered Code, include this CDDL HEADER in each
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * If applicable, add the following below this CDDL HEADER, with the
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * fields enclosed by brackets "[]" replaced with your own identifying
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * information: Portions Copyright [yyyy] [name of copyright owner]
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * CDDL HEADER END
1de082f7b7fd4b6629e14b0f9b8f94f6c0bda3c2Vikram Hegde * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * Use is subject to license terms.
ae115bc77f6fcde83175c75b4206dc2e50747966mrjextern "C" {
0181461b79a0991f2269dad3ef978086e6c70257Keith M Wesolowski * This is used by bootfs and dboot. It should be at least as large as the
0181461b79a0991f2269dad3ef978086e6c70257Keith M Wesolowski * number of modules that bootloaders (e.g., grub) can support. This figure
0181461b79a0991f2269dad3ef978086e6c70257Keith M Wesolowski * has been chosen to match grub's value exactly.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * The 32-bit kernel loader code needs to build several structures that the
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * kernel is expecting. They will contain native sized pointers for the
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * target kernel.
ae115bc77f6fcde83175c75b4206dc2e50747966mrjtypedef void *native_ptr_t;
ae115bc77f6fcde83175c75b4206dc2e50747966mrj * The kernel needs to know how to find its modules.
ae115bc77f6fcde83175c75b4206dc2e50747966mrj uint64_t bi_next_paddr; /* next physical address not used */
ae115bc77f6fcde83175c75b4206dc2e50747966mrj native_ptr_t bi_next_vaddr; /* next virtual address not used */
ae115bc77f6fcde83175c75b4206dc2e50747966mrj uint32_t bi_use_pae; /* MMU uses PAE mode (8 byte PTES) */
ae115bc77f6fcde83175c75b4206dc2e50747966mrj native_ptr_t bi_kseg_size; /* size used for kernel nucleus pages */
843e19887f64dde75055cf8842fc4db2171eff45johnlev#if defined(__xpv)
843e19887f64dde75055cf8842fc4db2171eff45johnlev native_ptr_t bi_shared_info; /* VA for shared_info */
ae115bc77f6fcde83175c75b4206dc2e50747966mrj#endif /* _SYS_BOOTINFO_H */