Deleted Added
full compact
main.c (214495) main.c (229403)
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 214495 2010-10-29 00:37:35Z nwhitehorn $");
29__FBSDID("$FreeBSD: head/sys/boot/ofw/common/main.c 229403 2012-01-03 18:51:58Z ed $");
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

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

128 (devsw[i]->dv_init)();
129
130 printf("\n");
131 printf("%s, Revision %s\n", bootprog_name, bootprog_rev);
132 printf("(%s, %s)\n", bootprog_maker, bootprog_date);
133 printf("Memory: %lldKB\n", memsize() / 1024);
134
135 OF_getprop(chosen, "bootpath", bootpath, 64);
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

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

128 (devsw[i]->dv_init)();
129
130 printf("\n");
131 printf("%s, Revision %s\n", bootprog_name, bootprog_rev);
132 printf("(%s, %s)\n", bootprog_maker, bootprog_date);
133 printf("Memory: %lldKB\n", memsize() / 1024);
134
135 OF_getprop(chosen, "bootpath", bootpath, 64);
136 ch = index(bootpath, ':');
136 ch = strchr(bootpath, ':');
137 *ch = '\0';
138 printf("Booted from: %s\n", bootpath);
139
140 printf("\n");
141
142 /*
143 * Only parse the first bootarg if present. It should
144 * be simple to handle extra arguments

--- 46 unchanged lines hidden ---
137 *ch = '\0';
138 printf("Booted from: %s\n", bootpath);
139
140 printf("\n");
141
142 /*
143 * Only parse the first bootarg if present. It should
144 * be simple to handle extra arguments

--- 46 unchanged lines hidden ---