Deleted Added
full compact
machdep.c (106503) machdep.c (106605)
1/*
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

51 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
52 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
53 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 * $NetBSD: machdep.c,v 1.74.2.1 2000/11/01 16:13:48 tv Exp $
55 */
56
57#ifndef lint
58static const char rcsid[] =
1/*
2 * Copyright (C) 1995, 1996 Wolfgang Solfrank.
3 * Copyright (C) 1995, 1996 TooLs GmbH.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

51 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
52 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
53 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 * $NetBSD: machdep.c,v 1.74.2.1 2000/11/01 16:13:48 tv Exp $
55 */
56
57#ifndef lint
58static const char rcsid[] =
59 "$FreeBSD: head/sys/powerpc/aim/machdep.c 106503 2002-11-06 14:53:35Z jmallett $";
59 "$FreeBSD: head/sys/powerpc/aim/machdep.c 106605 2002-11-07 23:57:17Z tmm $";
60#endif /* not lint */
61
62#include "opt_ddb.h"
63#include "opt_compat.h"
64#include "opt_msgbuf.h"
65
66#include <sys/param.h>
67#include <sys/systm.h>

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

109#include <machine/elf.h>
110#include <machine/trap.h>
111#include <machine/powerpc.h>
112#include <dev/ofw/openfirm.h>
113#include <ddb/ddb.h>
114#include <sys/vnode.h>
115#include <machine/sigframe.h>
116
60#endif /* not lint */
61
62#include "opt_ddb.h"
63#include "opt_compat.h"
64#include "opt_msgbuf.h"
65
66#include <sys/param.h>
67#include <sys/systm.h>

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

109#include <machine/elf.h>
110#include <machine/trap.h>
111#include <machine/powerpc.h>
112#include <dev/ofw/openfirm.h>
113#include <ddb/ddb.h>
114#include <sys/vnode.h>
115#include <machine/sigframe.h>
116
117long physmem = 0;
118int cold = 1;
119
120char pcpu0[PAGE_SIZE];
121char uarea0[UAREA_PAGES * PAGE_SIZE];
122struct trapframe frame0;
123
124vm_offset_t kstack0;
125vm_offset_t kstack0_phys;

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

148
149int save_ofw_mapping(void);
150int restore_ofw_mapping(void);
151
152void install_extint(void (*)(void));
153
154int setfault(faultbuf); /* defined in locore.S */
155
117int cold = 1;
118
119char pcpu0[PAGE_SIZE];
120char uarea0[UAREA_PAGES * PAGE_SIZE];
121struct trapframe frame0;
122
123vm_offset_t kstack0;
124vm_offset_t kstack0_phys;

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

147
148int save_ofw_mapping(void);
149int restore_ofw_mapping(void);
150
151void install_extint(void (*)(void));
152
153int setfault(faultbuf); /* defined in locore.S */
154
156static int
157sysctl_hw_physmem(SYSCTL_HANDLER_ARGS)
158{
159 u_long val;
160
161 val = ctob(physmem);
162 return (sysctl_handle_long(oidp, &val, 0, req));
163}
164
165SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_ULONG | CTLFLAG_RD,
166 0, 0, sysctl_hw_physmem, "LU", "");
167
168long Maxmem = 0;
169
170static int chosen;
171
172struct pmap ofw_pmap;
173extern int ofmsr;
174
175struct bat battable[16];

--- 653 unchanged lines hidden ---
155long Maxmem = 0;
156
157static int chosen;
158
159struct pmap ofw_pmap;
160extern int ofmsr;
161
162struct bat battable[16];

--- 653 unchanged lines hidden ---