Deleted Added
full compact
malta_machdep.c (202849) malta_machdep.c (202954)
1/*-
2 * Copyright (c) 2006 Wojciech A. Koszek <wkoszek@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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
1/*-
2 * Copyright (c) 2006 Wojciech A. Koszek <wkoszek@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

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/mips/malta/malta_machdep.c 202849 2010-01-23 00:18:12Z imp $
26 * $FreeBSD: head/sys/mips/malta/malta_machdep.c 202954 2010-01-25 00:44:05Z gonzo $
27 */
28#include <sys/cdefs.h>
27 */
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/mips/malta/malta_machdep.c 202849 2010-01-23 00:18:12Z imp $");
29__FBSDID("$FreeBSD: head/sys/mips/malta/malta_machdep.c 202954 2010-01-25 00:44:05Z gonzo $");
30
31#include "opt_ddb.h"
32
33#include <sys/param.h>
34#include <sys/conf.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/imgact.h>

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

173{
174 int i;
175
176 for (i = 0; i < 10; i++) {
177 phys_avail[i] = 0;
178 }
179
180 /* phys_avail regions are in bytes */
30
31#include "opt_ddb.h"
32
33#include <sys/param.h>
34#include <sys/conf.h>
35#include <sys/kernel.h>
36#include <sys/systm.h>
37#include <sys/imgact.h>

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

173{
174 int i;
175
176 for (i = 0; i < 10; i++) {
177 phys_avail[i] = 0;
178 }
179
180 /* phys_avail regions are in bytes */
181 phys_avail[0] = MIPS_KSEG0_TO_PHYS((vm_offset_t)&end);
181 phys_avail[0] = MIPS_KSEG0_TO_PHYS(kernel_kseg0_end);
182 phys_avail[1] = ctob(realmem);
183
184 physmem = realmem;
185
186 init_param1();
187 init_param2(physmem);
188 mips_cpu_init();
189 pmap_bootstrap();

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

288 uint64_t platform_counter_freq;
289 int argc = a0;
290 char **argv = (char **)a1;
291 char **envp = (char **)a2;
292 unsigned int memsize = a3;
293 int i;
294
295 /* clear the BSS and SBSS segments */
182 phys_avail[1] = ctob(realmem);
183
184 physmem = realmem;
185
186 init_param1();
187 init_param2(physmem);
188 mips_cpu_init();
189 pmap_bootstrap();

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

288 uint64_t platform_counter_freq;
289 int argc = a0;
290 char **argv = (char **)a1;
291 char **envp = (char **)a2;
292 unsigned int memsize = a3;
293 int i;
294
295 /* clear the BSS and SBSS segments */
296 kernend = round_page((vm_offset_t)&end);
296 kernend = (vm_offset_t)&end;
297 memset(&edata, 0, kernend - (vm_offset_t)(&edata));
298
297 memset(&edata, 0, kernend - (vm_offset_t)(&edata));
298
299 mips_postboot_fixup();
300
299 mips_pcpu0_init();
300 platform_counter_freq = malta_cpu_freq();
301 mips_timer_early_init(platform_counter_freq);
302
303 cninit();
304 printf("entry: platform_start()\n");
305
306 bootverbose = 1;

--- 18 unchanged lines hidden ---
301 mips_pcpu0_init();
302 platform_counter_freq = malta_cpu_freq();
303 mips_timer_early_init(platform_counter_freq);
304
305 cninit();
306 printf("entry: platform_start()\n");
307
308 bootverbose = 1;

--- 18 unchanged lines hidden ---