aim_machdep.c (134791) | aim_machdep.c (137912) |
---|---|
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: --- 41 unchanged lines hidden (view full) --- 50 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 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#include <sys/cdefs.h> | 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: --- 41 unchanged lines hidden (view full) --- 50 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 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#include <sys/cdefs.h> |
58__FBSDID("$FreeBSD: head/sys/powerpc/aim/machdep.c 134791 2004-09-05 02:09:54Z julian $"); | 58__FBSDID("$FreeBSD: head/sys/powerpc/aim/machdep.c 137912 2004-11-20 02:29:25Z das $"); |
59 60#include "opt_compat.h" 61#include "opt_ddb.h" 62#include "opt_kstack_pages.h" 63#include "opt_msgbuf.h" 64 65#include <sys/param.h> 66#include <sys/systm.h> --- 51 unchanged lines hidden (view full) --- 118 119#ifdef DDB 120extern vm_offset_t ksym_start, ksym_end; 121#endif 122 123int cold = 1; 124 125char pcpu0[PAGE_SIZE]; | 59 60#include "opt_compat.h" 61#include "opt_ddb.h" 62#include "opt_kstack_pages.h" 63#include "opt_msgbuf.h" 64 65#include <sys/param.h> 66#include <sys/systm.h> --- 51 unchanged lines hidden (view full) --- 118 119#ifdef DDB 120extern vm_offset_t ksym_start, ksym_end; 121#endif 122 123int cold = 1; 124 125char pcpu0[PAGE_SIZE]; |
126char uarea0[UAREA_PAGES * PAGE_SIZE]; | |
127struct trapframe frame0; 128 129vm_offset_t kstack0; 130vm_offset_t kstack0_phys; 131 132char machine[] = "powerpc"; 133SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, machine, 0, ""); 134 --- 140 unchanged lines hidden (view full) --- 275 * Init params/tunables that can be overridden by the loader 276 */ 277 init_param1(); 278 279 /* 280 * Start initializing proc0 and thread0. 281 */ 282 proc_linkup(&proc0, &ksegrp0, &thread0); | 126struct trapframe frame0; 127 128vm_offset_t kstack0; 129vm_offset_t kstack0_phys; 130 131char machine[] = "powerpc"; 132SYSCTL_STRING(_hw, HW_MACHINE, machine, CTLFLAG_RD, machine, 0, ""); 133 --- 140 unchanged lines hidden (view full) --- 274 * Init params/tunables that can be overridden by the loader 275 */ 276 init_param1(); 277 278 /* 279 * Start initializing proc0 and thread0. 280 */ 281 proc_linkup(&proc0, &ksegrp0, &thread0); |
283 proc0.p_uarea = (struct user *)uarea0; 284 proc0.p_stats = &proc0.p_uarea->u_stats; | |
285 thread0.td_frame = &frame0; 286 287 /* 288 * Set up per-cpu data. 289 */ 290 pc = (struct pcpu *)(pcpu0 + PAGE_SIZE) - 1; 291 pcpu_init(pc, 0, sizeof(struct pcpu)); 292 pc->pc_curthread = &thread0; --- 644 unchanged lines hidden --- | 282 thread0.td_frame = &frame0; 283 284 /* 285 * Set up per-cpu data. 286 */ 287 pc = (struct pcpu *)(pcpu0 + PAGE_SIZE) - 1; 288 pcpu_init(pc, 0, sizeof(struct pcpu)); 289 pc->pc_curthread = &thread0; --- 644 unchanged lines hidden --- |