Deleted Added
full compact
adm5120_machdep.c (202849) adm5120_machdep.c (202954)
1/*-
2 * Copyright (C) 2007 by Oleksandr Tymoshenko. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
22 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 */
26
27#include <sys/cdefs.h>
1/*-
2 * Copyright (C) 2007 by Oleksandr Tymoshenko. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
22 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 */
26
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/mips/adm5120/adm5120_machdep.c 202849 2010-01-23 00:18:12Z imp $");
28__FBSDID("$FreeBSD: head/sys/mips/adm5120/adm5120_machdep.c 202954 2010-01-25 00:44:05Z gonzo $");
29
30#include "opt_ddb.h"
31
32#include <sys/param.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/systm.h>
36#include <sys/imgact.h>

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

89 bootverbose = 1;
90 realmem = btoc(16 << 20);
91
92 for (i = 0; i < 10; i++) {
93 phys_avail[i] = 0;
94 }
95
96 /* phys_avail regions are in bytes */
29
30#include "opt_ddb.h"
31
32#include <sys/param.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>
35#include <sys/systm.h>
36#include <sys/imgact.h>

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

89 bootverbose = 1;
90 realmem = btoc(16 << 20);
91
92 for (i = 0; i < 10; i++) {
93 phys_avail[i] = 0;
94 }
95
96 /* phys_avail regions are in bytes */
97 phys_avail[0] = MIPS_KSEG0_TO_PHYS((vm_offset_t)&end);
97 phys_avail[0] = MIPS_KSEG0_TO_PHYS(kernel_kseg0_end);
98 phys_avail[1] = ctob(realmem);
99
100 physmem = realmem;
101
102 init_param1();
103 init_param2(physmem);
104 mips_cpu_init();
105 pmap_bootstrap();

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

148void
149platform_start(__register_t a0 __unused, __register_t a1 __unused,
150 __register_t a2 __unused, __register_t a3 __unused)
151{
152 vm_offset_t kernend;
153 uint64_t platform_counter_freq = 175 * 1000 * 1000;
154
155 /* clear the BSS and SBSS segments */
98 phys_avail[1] = ctob(realmem);
99
100 physmem = realmem;
101
102 init_param1();
103 init_param2(physmem);
104 mips_cpu_init();
105 pmap_bootstrap();

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

148void
149platform_start(__register_t a0 __unused, __register_t a1 __unused,
150 __register_t a2 __unused, __register_t a3 __unused)
151{
152 vm_offset_t kernend;
153 uint64_t platform_counter_freq = 175 * 1000 * 1000;
154
155 /* clear the BSS and SBSS segments */
156 kernend = round_page((vm_offset_t)&end);
156 kernend = (vm_offset_t)&end;
157 memset(&edata, 0, kernend - (vm_offset_t)(&edata));
158
157 memset(&edata, 0, kernend - (vm_offset_t)(&edata));
158
159 mips_postboot_fixup();
160
159 /* Initialize pcpu stuff */
160 mips_pcpu0_init();
161
162 cninit();
163 mips_init();
164 mips_timer_init_params(platform_counter_freq, 0);
165}
161 /* Initialize pcpu stuff */
162 mips_pcpu0_init();
163
164 cninit();
165 mips_init();
166 mips_timer_init_params(platform_counter_freq, 0);
167}