Deleted Added
full compact
adm5120_machdep.c (185915) adm5120_machdep.c (202037)
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 185915 2008-12-11 07:00:23Z imp $");
28__FBSDID("$FreeBSD: head/sys/mips/adm5120/adm5120_machdep.c 202037 2010-01-10 20:11:10Z imp $");
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>

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

68#include <machine/pte.h>
69#include <machine/sigframe.h>
70#include <machine/trap.h>
71#include <machine/vmparam.h>
72
73extern int *edata;
74extern int *end;
75
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>

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

68#include <machine/pte.h>
69#include <machine/sigframe.h>
70#include <machine/trap.h>
71#include <machine/vmparam.h>
72
73extern int *edata;
74extern int *end;
75
76void
77platform_cpu_init()
78{
79 /* Nothing special */
80}
81
76static void
77mips_init(void)
78{
79 int i;
80
81 printf("entry: mips_init()\n");
82
83 bootverbose = 1;

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

143{
144 vm_offset_t kernend;
145 uint64_t platform_counter_freq = 175 * 1000 * 1000;
146
147 /* clear the BSS and SBSS segments */
148 kernend = round_page((vm_offset_t)&end);
149 memset(&edata, 0, kernend - (vm_offset_t)(&edata));
150
82static void
83mips_init(void)
84{
85 int i;
86
87 printf("entry: mips_init()\n");
88
89 bootverbose = 1;

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

149{
150 vm_offset_t kernend;
151 uint64_t platform_counter_freq = 175 * 1000 * 1000;
152
153 /* clear the BSS and SBSS segments */
154 kernend = round_page((vm_offset_t)&end);
155 memset(&edata, 0, kernend - (vm_offset_t)(&edata));
156
157 /* Initialize pcpu stuff */
158 mips_pcpu0_init();
159
151 cninit();
152 mips_init();
153 mips_timer_init_params(platform_counter_freq, 0);
154}
160 cninit();
161 mips_init();
162 mips_timer_init_params(platform_counter_freq, 0);
163}