Deleted Added
full compact
main.c (172924) main.c (181436)
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * All rights reserved.
4 *
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

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org>
3 * All rights reserved.
4 *
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

--- 11 unchanged lines hidden (view full) ---

20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/boot/pc98/loader/main.c 172924 2007-10-24 11:54:04Z nyan $");
28__FBSDID("$FreeBSD: head/sys/boot/pc98/loader/main.c 181436 2008-08-08 19:41:20Z jhb $");
29
30/*
31 * MD bootstrap main() and assorted miscellaneous
32 * commands.
33 */
34
35#include <stand.h>
36#include <string.h>
37#include <machine/bootinfo.h>
29
30/*
31 * MD bootstrap main() and assorted miscellaneous
32 * commands.
33 */
34
35#include <stand.h>
36#include <string.h>
37#include <machine/bootinfo.h>
38#include <machine/psl.h>
38#include <sys/reboot.h>
39
40#include "bootstrap.h"
41#include "libi386/libi386.h"
42#include "btxv86.h"
43
44#define KARGS_FLAGS_CD 0x1
45#define KARGS_FLAGS_PXE 0x2

--- 35 unchanged lines hidden (view full) ---

81 int i;
82
83 /* Pick up arguments */
84 kargs = (void *)__args;
85 initial_howto = kargs->howto;
86 initial_bootdev = kargs->bootdev;
87 initial_bootinfo = kargs->bootinfo ? (struct bootinfo *)PTOV(kargs->bootinfo) : NULL;
88
39#include <sys/reboot.h>
40
41#include "bootstrap.h"
42#include "libi386/libi386.h"
43#include "btxv86.h"
44
45#define KARGS_FLAGS_CD 0x1
46#define KARGS_FLAGS_PXE 0x2

--- 35 unchanged lines hidden (view full) ---

82 int i;
83
84 /* Pick up arguments */
85 kargs = (void *)__args;
86 initial_howto = kargs->howto;
87 initial_bootdev = kargs->bootdev;
88 initial_bootinfo = kargs->bootinfo ? (struct bootinfo *)PTOV(kargs->bootinfo) : NULL;
89
90 /* Initialize the v86 register set to a known-good state. */
91 bzero(&v86, sizeof(v86));
92 v86.efl = PSL_RESERVED_DEFAULT | PSL_I;
93
89 /*
90 * Initialise the heap as early as possible. Once this is done, malloc() is usable.
91 */
92 bios_getmem();
93
94#ifdef LOADER_BZIP2_SUPPORT
95 heap_top = PTOV(memtop_copyin);
96 memtop_copyin -= 0x300000;

--- 216 unchanged lines hidden ---
94 /*
95 * Initialise the heap as early as possible. Once this is done, malloc() is usable.
96 */
97 bios_getmem();
98
99#ifdef LOADER_BZIP2_SUPPORT
100 heap_top = PTOV(memtop_copyin);
101 memtop_copyin -= 0x300000;

--- 216 unchanged lines hidden ---