Deleted Added
full compact
machdep.c (91360) machdep.c (91613)
1/*-
2 * Copyright (c) 2001 Jake Burkholder.
3 * Copyright (c) 1992 Terrence R. Lambert.
4 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * William Jolitz.

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

32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
39 * from: FreeBSD: src/sys/i386/i386/machdep.c,v 1.477 2001/08/27
1/*-
2 * Copyright (c) 2001 Jake Burkholder.
3 * Copyright (c) 1992 Terrence R. Lambert.
4 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * William Jolitz.

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

32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
39 * from: FreeBSD: src/sys/i386/i386/machdep.c,v 1.477 2001/08/27
40 * $FreeBSD: head/sys/sparc64/sparc64/machdep.c 91360 2002-02-27 06:08:13Z jake $
40 * $FreeBSD: head/sys/sparc64/sparc64/machdep.c 91613 2002-03-04 05:20:29Z jake $
41 */
42
43#include "opt_ddb.h"
44#include "opt_msgbuf.h"
45
46#include <sys/param.h>
47#include <sys/systm.h>
48#include <sys/cons.h>

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

91#include <machine/md_var.h>
92#include <machine/metadata.h>
93#include <machine/ofw_machdep.h>
94#include <machine/pmap.h>
95#include <machine/pstate.h>
96#include <machine/reg.h>
97#include <machine/sigframe.h>
98#include <machine/tick.h>
41 */
42
43#include "opt_ddb.h"
44#include "opt_msgbuf.h"
45
46#include <sys/param.h>
47#include <sys/systm.h>
48#include <sys/cons.h>

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

91#include <machine/md_var.h>
92#include <machine/metadata.h>
93#include <machine/ofw_machdep.h>
94#include <machine/pmap.h>
95#include <machine/pstate.h>
96#include <machine/reg.h>
97#include <machine/sigframe.h>
98#include <machine/tick.h>
99#include <machine/tlb.h>
99#include <machine/tstate.h>
100#include <machine/ver.h>
101
102#define MD_FETCH(mdp, info, type) ({ \
103 type *__p; \
104 __p = (type *)preload_search_info((mdp), MODINFO_METADATA | (info)); \
105 __p ? *__p : 0; \
106})

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

291 * stack, so don't pass the real size (PAGE_SIZE) to pcpu_init or
292 * it'll zero it out from under us.
293 */
294 pc = (struct pcpu *)(pcpu0 + (PCPU_PAGES * PAGE_SIZE)) - 1;
295 pcpu_init(pc, 0, sizeof(struct pcpu));
296 pc->pc_curthread = &thread0;
297 pc->pc_curpcb = thread0.td_pcb;
298 pc->pc_mid = mid;
100#include <machine/tstate.h>
101#include <machine/ver.h>
102
103#define MD_FETCH(mdp, info, type) ({ \
104 type *__p; \
105 __p = (type *)preload_search_info((mdp), MODINFO_METADATA | (info)); \
106 __p ? *__p : 0; \
107})

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

292 * stack, so don't pass the real size (PAGE_SIZE) to pcpu_init or
293 * it'll zero it out from under us.
294 */
295 pc = (struct pcpu *)(pcpu0 + (PCPU_PAGES * PAGE_SIZE)) - 1;
296 pcpu_init(pc, 0, sizeof(struct pcpu));
297 pc->pc_curthread = &thread0;
298 pc->pc_curpcb = thread0.td_pcb;
299 pc->pc_mid = mid;
300 pc->pc_tlb_ctx = TLB_CTX_USER_MIN;
301 pc->pc_tlb_ctx_min = TLB_CTX_USER_MIN;
302 pc->pc_tlb_ctx_max = TLB_CTX_USER_MAX;
299
300 /*
301 * Initialize global registers.
302 */
303 cpu_setregs(pc);
304
305 /*
306 * Map and initialize the message buffer (after setting trap table).

--- 388 unchanged lines hidden ---
303
304 /*
305 * Initialize global registers.
306 */
307 cpu_setregs(pc);
308
309 /*
310 * Map and initialize the message buffer (after setting trap table).

--- 388 unchanged lines hidden ---