Deleted Added
full compact
main.c (133862) main.c (163893)
1/*-
2 * Copyright (c) 2000 Benno Rice <benno@jeamland.net>
3 * Copyright (c) 2000 Stephane Potvin <sepotvin@videotron.ca>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2000 Benno Rice <benno@jeamland.net>
3 * Copyright (c) 2000 Stephane Potvin <sepotvin@videotron.ca>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/boot/ofw/common/main.c 133862 2004-08-16 15:45:27Z marius $");
29__FBSDID("$FreeBSD: head/sys/boot/ofw/common/main.c 163893 2006-11-02 00:26:45Z marcel $");
30
31#include <stand.h>
32#include "openfirm.h"
33#include "libofw.h"
34#include "bootstrap.h"
35
36struct arch_switch archsw; /* MI/MD interface boundary */
37

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

120 /*
121 * Initialise the heap as early as possible. Once this is done,
122 * alloc() is usable. The stack is buried inside us, so this is
123 * safe.
124 */
125 init_heap();
126
127 /*
30
31#include <stand.h>
32#include "openfirm.h"
33#include "libofw.h"
34#include "bootstrap.h"
35
36struct arch_switch archsw; /* MI/MD interface boundary */
37

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

120 /*
121 * Initialise the heap as early as possible. Once this is done,
122 * alloc() is usable. The stack is buried inside us, so this is
123 * safe.
124 */
125 init_heap();
126
127 /*
128 * Initialise the block cache
129 */
130 bcache_init(32, 512); /* 16k XXX tune this */
131
132 /*
133 * March through the device switch probing for things.
134 */
135 for (i = 0; devsw[i] != NULL; i++)
136 if (devsw[i]->dv_init != NULL)
137 (devsw[i]->dv_init)();
138
139 printf("\n");
140 printf("%s, Revision %s\n", bootprog_name, bootprog_rev);

--- 59 unchanged lines hidden ---
128 * March through the device switch probing for things.
129 */
130 for (i = 0; devsw[i] != NULL; i++)
131 if (devsw[i]->dv_init != NULL)
132 (devsw[i]->dv_init)();
133
134 printf("\n");
135 printf("%s, Revision %s\n", bootprog_name, bootprog_rev);

--- 59 unchanged lines hidden ---