xenguest.s revision a576ab5b6e08c47732b3dedca9eaa8a8cbb85720
1N/A/*
1N/A * CDDL HEADER START
1N/A *
1N/A * The contents of this file are subject to the terms of the
1N/A * Common Development and Distribution License (the "License").
1N/A * You may not use this file except in compliance with the License.
1N/A *
1N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A * or http://www.opensolaris.org/os/licensing.
1N/A * See the License for the specific language governing permissions
1N/A * and limitations under the License.
1N/A *
1N/A * When distributing Covered Code, include this CDDL HEADER in each
1N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A * If applicable, add the following below this CDDL HEADER, with the
1N/A * fields enclosed by brackets "[]" replaced with your own identifying
1N/A * information: Portions Copyright [yyyy] [name of copyright owner]
1N/A *
1N/A * CDDL HEADER END
1N/A */
1N/A
1N/A/*
1N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1N/A * Use is subject to license terms.
1N/A */
1N/A
1N/A#pragma ident "%Z%%M% %I% %E% SMI"
1N/A
1N/A#if defined(__lint)
1N/A
1N/A/*
1N/A * Stop lint complaining about an empty compilation unit!
1N/A * Sigh. There should be a better way to handle this.
1N/A */
1N/Aint __lint_xen_guest;
1N/A
1N/A#else /* __lint */
1N/A
1N/A#include <xen/public/elfnote.h>
1N/A
1N/A/*
1N/A * A note is a name/value pair that belongs to some class.
1N/A */
1N/A#define NOTE(class, id, type, value) \
1N/A .align 4; \
1N/A .4byte 2f - 1f; \
1N/A .4byte 4f - 3f; \
1N/A .4byte id; \
1N/A1: ; \
1N/A .string class; \
1N/A2: ; \
1N/A .align 4; \
1N/A3: ; \
1N/A type value; \
1N/A4: ;
1N/A
1N/A .section .note
1N/A NOTE("Xen", XEN_ELFNOTE_LOADER, .string, "generic")
1N/A NOTE("Xen", XEN_ELFNOTE_XEN_VERSION, .string, "xen-3.0")
1N/A NOTE("Xen", XEN_ELFNOTE_GUEST_OS, .string, "Solaris")
1N/A NOTE("Xen", XEN_ELFNOTE_VIRT_BASE, .4byte, 0x40000000)
1N/A NOTE("Xen", XEN_ELFNOTE_PADDR_OFFSET, .4byte, 0x40000000)
1N/A#if defined(__i386)
1N/A NOTE("Xen", XEN_ELFNOTE_PAE_MODE, .string, "yes,bimodal")
1N/A#endif
1N/A
1N/A#endif /* __lint */
1N/A