save/restore cr2, cr3 from vmcb
[freebsd-src/fkvm-freebsd.git] / usr.sbin / kgzip / aouthdr.h
blob63c2dff669047faba8df38d4081b2de0c761832d
1 /*
2 * Copyright (c) 2000 Robert Nordier
3 * All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
12 * the documentation and/or other materials provided with the
13 * distribution.
15 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
16 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY
19 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
21 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 * $FreeBSD$
30 #include <a.out.h>
31 #include "kgz.h"
33 /* Relocatable header: part 0 */
34 struct kgz_aouthdr0 {
35 struct exec a;
38 /* Symbol table entries */
39 #define KGZ__STNUM 2
41 /* Symbol table strings */
42 #define KGZ__STR_KGZ "_kgz"
43 #define KGZ__STR_KGZ_NDATA "_kgz_ndata"
45 /* String table */
46 struct kgz__strtab {
47 unsigned long length;
48 char kgz[sizeof(KGZ__STR_KGZ)];
49 char kgz_ndata[sizeof(KGZ__STR_KGZ_NDATA)];
52 /* Relocatable header: part 1 */
53 struct kgz_aouthdr1 {
54 struct nlist st[KGZ__STNUM];
55 struct kgz__strtab strtab;
58 extern const struct kgz_aouthdr0 aouthdr0;
59 extern const struct kgz_aouthdr1 aouthdr1;