Deleted Added
full compact
idt_machdep.c (202849) idt_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.

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

22 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * $Id: $
26 *
27 */
28
29#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.

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

22 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23 * THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * $Id: $
26 *
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/mips/idt/idt_machdep.c 202849 2010-01-23 00:18:12Z imp $");
30__FBSDID("$FreeBSD: head/sys/mips/idt/idt_machdep.c 202954 2010-01-25 00:44:05Z gonzo $");
31
32#include "opt_ddb.h"
33
34#include <sys/param.h>
35#include <sys/conf.h>
36#include <sys/kernel.h>
37#include <sys/systm.h>
38#include <sys/imgact.h>

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

129 uint64_t platform_counter_freq;
130 vm_offset_t kernend;
131 int argc = a0;
132 char **argv = (char **)a1;
133 int i, mem;
134
135
136 /* clear the BSS and SBSS segments */
31
32#include "opt_ddb.h"
33
34#include <sys/param.h>
35#include <sys/conf.h>
36#include <sys/kernel.h>
37#include <sys/systm.h>
38#include <sys/imgact.h>

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

129 uint64_t platform_counter_freq;
130 vm_offset_t kernend;
131 int argc = a0;
132 char **argv = (char **)a1;
133 int i, mem;
134
135
136 /* clear the BSS and SBSS segments */
137 kernend = round_page((vm_offset_t)&end);
137 kernend = (vm_offset_t)&end;
138 memset(&edata, 0, kernend - (vm_offset_t)(&edata));
139
138 memset(&edata, 0, kernend - (vm_offset_t)(&edata));
139
140 mips_postboot_fixup();
141
140 /* Initialize pcpu stuff */
141 mips_pcpu0_init();
142
143 /*
144 * Looking for mem=XXM argument
145 */
146 mem = 0; /* Just something to start with */
147 for (i=0; i < argc; i++) {

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

157 else
158 realmem = btoc(32 << 20);
159
160 for (i = 0; i < 10; i++) {
161 phys_avail[i] = 0;
162 }
163
164 /* phys_avail regions are in bytes */
142 /* Initialize pcpu stuff */
143 mips_pcpu0_init();
144
145 /*
146 * Looking for mem=XXM argument
147 */
148 mem = 0; /* Just something to start with */
149 for (i=0; i < argc; i++) {

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

159 else
160 realmem = btoc(32 << 20);
161
162 for (i = 0; i < 10; i++) {
163 phys_avail[i] = 0;
164 }
165
166 /* phys_avail regions are in bytes */
165 phys_avail[0] = MIPS_KSEG0_TO_PHYS((vm_offset_t)&end);
167 phys_avail[0] = MIPS_KSEG0_TO_PHYS(kernel_kseg0_end);
166 phys_avail[1] = ctob(realmem);
167
168 physmem = realmem;
169
170 /*
171 * ns8250 uart code uses DELAY so ticker should be inititalized
172 * before cninit. And tick_init_params refers to hz, so * init_param1
173 * should be called first.

--- 26 unchanged lines hidden ---
168 phys_avail[1] = ctob(realmem);
169
170 physmem = realmem;
171
172 /*
173 * ns8250 uart code uses DELAY so ticker should be inititalized
174 * before cninit. And tick_init_params refers to hz, so * init_param1
175 * should be called first.

--- 26 unchanged lines hidden ---