machdep.c (10126) | machdep.c (10358) |
---|---|
1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 | 1/*- 2 * Copyright (c) 1992 Terrence R. Lambert. 3 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 21 unchanged lines hidden (view full) --- 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 |
38 * $Id: machdep.c,v 1.135 1995/07/29 11:38:52 bde Exp $ | 38 * $Id: machdep.c,v 1.136 1995/08/20 04:41:02 davidg Exp $ |
39 */ 40 41#include "npx.h" 42#include "isa.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/signalvar.h> --- 74 unchanged lines hidden (view full) --- 121#include <machine/devconf.h> 122#include <machine/bootinfo.h> 123#include <machine/md_var.h> 124 125#include <i386/isa/isa.h> 126#include <i386/isa/isa_device.h> 127#include <i386/isa/rtc.h> 128 | 39 */ 40 41#include "npx.h" 42#include "isa.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/signalvar.h> --- 74 unchanged lines hidden (view full) --- 121#include <machine/devconf.h> 122#include <machine/bootinfo.h> 123#include <machine/md_var.h> 124 125#include <i386/isa/isa.h> 126#include <i386/isa/isa_device.h> 127#include <i386/isa/rtc.h> 128 |
129/* 130 * System initialization 131 */ 132 133static void cpu_startup __P(( caddr_t)); 134 135SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL) 136 137 |
|
129static void identifycpu(void); 130static void initcpu(void); 131 132char machine[] = "i386"; 133char cpu_model[128]; 134 135struct kern_devconf kdc_cpu0 = { 136 0, 0, 0, /* filled in by dev_attach */ --- 45 unchanged lines hidden (view full) --- 182 183vm_offset_t buffer_sva, buffer_eva; 184vm_offset_t clean_sva, clean_eva; 185vm_offset_t pager_sva, pager_eva; 186extern struct linker_set netisr_set; 187 188#define offsetof(type, member) ((size_t)(&((type *)0)->member)) 189 | 138static void identifycpu(void); 139static void initcpu(void); 140 141char machine[] = "i386"; 142char cpu_model[128]; 143 144struct kern_devconf kdc_cpu0 = { 145 0, 0, 0, /* filled in by dev_attach */ --- 45 unchanged lines hidden (view full) --- 191 192vm_offset_t buffer_sva, buffer_eva; 193vm_offset_t clean_sva, clean_eva; 194vm_offset_t pager_sva, pager_eva; 195extern struct linker_set netisr_set; 196 197#define offsetof(type, member) ((size_t)(&((type *)0)->member)) 198 |
190void 191cpu_startup() | 199/* ARGSUSED*/ 200static void 201cpu_startup( udata) 202caddr_t udata; /* not used*/ |
192{ 193 register unsigned i; 194 register caddr_t v; 195 vm_offset_t maxaddr; 196 vm_size_t size = 0; 197 int firstaddr, indx; 198 vm_offset_t minaddr; 199 --- 1590 unchanged lines hidden --- | 203{ 204 register unsigned i; 205 register caddr_t v; 206 vm_offset_t maxaddr; 207 vm_size_t size = 0; 208 int firstaddr, indx; 209 vm_offset_t minaddr; 210 --- 1590 unchanged lines hidden --- |