Deleted Added
full compact
machdep.c (235831) machdep.c (236828)
1/* $NetBSD: arm32_machdep.c,v 1.44 2004/03/24 15:34:47 atatat Exp $ */
2
3/*-
4 * Copyright (c) 2004 Olivier Houchard
5 * Copyright (c) 1994-1998 Mark Brinicombe.
6 * Copyright (c) 1994 Brini.
7 * All rights reserved.
8 *

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

41 * Created : 17/09/94
42 * Updated : 18/04/01 updated for new wscons
43 */
44
45#include "opt_compat.h"
46#include "opt_ddb.h"
47
48#include <sys/cdefs.h>
1/* $NetBSD: arm32_machdep.c,v 1.44 2004/03/24 15:34:47 atatat Exp $ */
2
3/*-
4 * Copyright (c) 2004 Olivier Houchard
5 * Copyright (c) 1994-1998 Mark Brinicombe.
6 * Copyright (c) 1994 Brini.
7 * All rights reserved.
8 *

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

41 * Created : 17/09/94
42 * Updated : 18/04/01 updated for new wscons
43 */
44
45#include "opt_compat.h"
46#include "opt_ddb.h"
47
48#include <sys/cdefs.h>
49__FBSDID("$FreeBSD: head/sys/arm/arm/machdep.c 235831 2012-05-23 13:23:40Z fabient $");
49__FBSDID("$FreeBSD: head/sys/arm/arm/machdep.c 236828 2012-06-10 01:13:04Z andrew $");
50
51#include <sys/param.h>
52#include <sys/proc.h>
53#include <sys/systm.h>
54#include <sys/bio.h>
55#include <sys/buf.h>
56#include <sys/bus.h>
57#include <sys/cons.h>

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

87#include <machine/pcb.h>
88#include <machine/pmap.h>
89#include <machine/reg.h>
90#include <machine/trap.h>
91#include <machine/undefined.h>
92#include <machine/vmparam.h>
93#include <machine/sysarch.h>
94
50
51#include <sys/param.h>
52#include <sys/proc.h>
53#include <sys/systm.h>
54#include <sys/bio.h>
55#include <sys/buf.h>
56#include <sys/bus.h>
57#include <sys/cons.h>

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

87#include <machine/pcb.h>
88#include <machine/pmap.h>
89#include <machine/reg.h>
90#include <machine/trap.h>
91#include <machine/undefined.h>
92#include <machine/vmparam.h>
93#include <machine/sysarch.h>
94
95static struct trapframe proc0_tf;
96
95uint32_t cpu_reset_address = 0;
96int cold = 1;
97vm_offset_t vector_page;
98
99long realmem = 0;
100
101int (*_arm_memcpy)(void *, void *, int, int) = NULL;
102int (*_arm_bzero)(void *, int, int) = NULL;

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

704#endif
705 lastaddr = (vm_offset_t)&end;
706 fake_preload[i++] = 0;
707 fake_preload[i] = 0;
708 preload_metadata = (void *)fake_preload;
709
710 return (lastaddr);
711}
97uint32_t cpu_reset_address = 0;
98int cold = 1;
99vm_offset_t vector_page;
100
101long realmem = 0;
102
103int (*_arm_memcpy)(void *, void *, int, int) = NULL;
104int (*_arm_bzero)(void *, int, int) = NULL;

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

706#endif
707 lastaddr = (vm_offset_t)&end;
708 fake_preload[i++] = 0;
709 fake_preload[i] = 0;
710 preload_metadata = (void *)fake_preload;
711
712 return (lastaddr);
713}
714
715/*
716 * Initialize proc0
717 */
718void
719init_proc0(vm_offset_t kstack)
720{
721 proc_linkup0(&proc0, &thread0);
722 thread0.td_kstack = kstack;
723 thread0.td_pcb = (struct pcb *)
724 (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1;
725 thread0.td_pcb->pcb_flags = 0;
726 thread0.td_frame = &proc0_tf;
727 pcpup->pc_curpcb = thread0.td_pcb;
728}
729