machdep.c (136325) | machdep.c (137912) |
---|---|
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. --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 35 * 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. --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 35 * from: FreeBSD: src/sys/i386/i386/machdep.c,v 1.477 2001/08/27 |
36 * $FreeBSD: head/sys/sparc64/sparc64/machdep.c 136325 2004-10-09 16:42:09Z kensmith $ | 36 * $FreeBSD: head/sys/sparc64/sparc64/machdep.c 137912 2004-11-20 02:29:25Z das $ |
37 */ 38 39#include "opt_compat.h" 40#include "opt_ddb.h" 41#include "opt_kstack_pages.h" 42#include "opt_msgbuf.h" 43 44#include <sys/param.h> --- 71 unchanged lines hidden (view full) --- 116 117struct tlb_entry *kernel_tlbs; 118int kernel_tlb_slots; 119 120int cold = 1; 121long Maxmem; 122 123char pcpu0[PCPU_PAGES * PAGE_SIZE]; | 37 */ 38 39#include "opt_compat.h" 40#include "opt_ddb.h" 41#include "opt_kstack_pages.h" 42#include "opt_msgbuf.h" 43 44#include <sys/param.h> --- 71 unchanged lines hidden (view full) --- 116 117struct tlb_entry *kernel_tlbs; 118int kernel_tlb_slots; 119 120int cold = 1; 121long Maxmem; 122 123char pcpu0[PCPU_PAGES * PAGE_SIZE]; |
124char uarea0[UAREA_PAGES * PAGE_SIZE]; | |
125struct trapframe frame0; 126 127vm_offset_t kstack0; 128vm_paddr_t kstack0_phys; 129 130struct kva_md_info kmi; 131 132u_long ofw_vec; --- 226 unchanged lines hidden (view full) --- 359 intr_init1(); 360 361 /* 362 * Initialize proc0 stuff (p_contested needs to be done early). 363 */ 364 proc_linkup(&proc0, &ksegrp0, &thread0); 365 proc0.p_md.md_sigtramp = NULL; 366 proc0.p_md.md_utrap = NULL; | 124struct trapframe frame0; 125 126vm_offset_t kstack0; 127vm_paddr_t kstack0_phys; 128 129struct kva_md_info kmi; 130 131u_long ofw_vec; --- 226 unchanged lines hidden (view full) --- 358 intr_init1(); 359 360 /* 361 * Initialize proc0 stuff (p_contested needs to be done early). 362 */ 363 proc_linkup(&proc0, &ksegrp0, &thread0); 364 proc0.p_md.md_sigtramp = NULL; 365 proc0.p_md.md_utrap = NULL; |
367 proc0.p_uarea = (struct user *)uarea0; 368 proc0.p_stats = &proc0.p_uarea->u_stats; | |
369 thread0.td_kstack = kstack0; 370 thread0.td_pcb = (struct pcb *) 371 (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; 372 frame0.tf_tstate = TSTATE_IE | TSTATE_PEF | TSTATE_PRIV; 373 thread0.td_frame = &frame0; 374 375 /* 376 * Prime our per-cpu data page for use. Note, we are using it for our --- 468 unchanged lines hidden --- | 366 thread0.td_kstack = kstack0; 367 thread0.td_pcb = (struct pcb *) 368 (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; 369 frame0.tf_tstate = TSTATE_IE | TSTATE_PEF | TSTATE_PRIV; 370 thread0.td_frame = &frame0; 371 372 /* 373 * Prime our per-cpu data page for use. Note, we are using it for our --- 468 unchanged lines hidden --- |