crb_machdep.c (220836) | crb_machdep.c (232295) |
---|---|
1/* $NetBSD: hpc_machdep.c,v 1.70 2003/09/16 08:18:22 agc Exp $ */ 2 3/*- 4 * Copyright (c) 1994-1998 Mark Brinicombe. 5 * Copyright (c) 1994 Brini. 6 * All rights reserved. 7 * 8 * This code is derived from software written for Brini by Mark Brinicombe --- 32 unchanged lines hidden (view full) --- 41 * Machine dependant functions for kernel setup 42 * 43 * This file needs a lot of work. 44 * 45 * Created : 17/09/94 46 */ 47 48#include <sys/cdefs.h> | 1/* $NetBSD: hpc_machdep.c,v 1.70 2003/09/16 08:18:22 agc Exp $ */ 2 3/*- 4 * Copyright (c) 1994-1998 Mark Brinicombe. 5 * Copyright (c) 1994 Brini. 6 * All rights reserved. 7 * 8 * This code is derived from software written for Brini by Mark Brinicombe --- 32 unchanged lines hidden (view full) --- 41 * Machine dependant functions for kernel setup 42 * 43 * This file needs a lot of work. 44 * 45 * Created : 17/09/94 46 */ 47 48#include <sys/cdefs.h> |
49__FBSDID("$FreeBSD: head/sys/arm/xscale/i8134x/crb_machdep.c 220836 2011-04-19 15:05:12Z pluknet $"); | 49__FBSDID("$FreeBSD: head/sys/arm/xscale/i8134x/crb_machdep.c 232295 2012-02-29 12:44:34Z cognet $"); |
50 51#define _ARM32_BUS_DMA_PRIVATE 52#include <sys/param.h> 53#include <sys/systm.h> 54#include <sys/sysproto.h> 55#include <sys/signalvar.h> 56#include <sys/imgact.h> 57#include <sys/kernel.h> --- 318 unchanged lines hidden (view full) --- 376 pmap_bootstrap(pmap_curmaxkvaddr, 377 0xd0000000, &kernel_l1pt); 378 msgbufp = (void*)msgbufpv.pv_va; 379 msgbufinit(msgbufp, msgbufsize); 380 mutex_init(); 381 382 i = 0; 383#ifdef ARM_USE_SMALL_ALLOC | 50 51#define _ARM32_BUS_DMA_PRIVATE 52#include <sys/param.h> 53#include <sys/systm.h> 54#include <sys/sysproto.h> 55#include <sys/signalvar.h> 56#include <sys/imgact.h> 57#include <sys/kernel.h> --- 318 unchanged lines hidden (view full) --- 376 pmap_bootstrap(pmap_curmaxkvaddr, 377 0xd0000000, &kernel_l1pt); 378 msgbufp = (void*)msgbufpv.pv_va; 379 msgbufinit(msgbufp, msgbufsize); 380 mutex_init(); 381 382 i = 0; 383#ifdef ARM_USE_SMALL_ALLOC |
384 phys_avail[i++] = 0x00000000; 385 phys_avail[i++] = 0x00001000; /* | 384 phys_avail[i++] = 0x00001000; 385 phys_avail[i++] = 0x00002000; /* |
386 *XXX: Gross hack to get our 387 * pages in the vm_page_array 388 . */ 389#endif 390 phys_avail[i++] = round_page(virtual_avail - KERNBASE + SDRAM_START); 391 phys_avail[i++] = trunc_page(0x00000000 + memsize - 1); 392 phys_avail[i++] = 0; 393 phys_avail[i] = 0; 394 395 init_param2(physmem); 396 kdb_init(); 397 return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP - 398 sizeof(struct pcb))); 399} | 386 *XXX: Gross hack to get our 387 * pages in the vm_page_array 388 . */ 389#endif 390 phys_avail[i++] = round_page(virtual_avail - KERNBASE + SDRAM_START); 391 phys_avail[i++] = trunc_page(0x00000000 + memsize - 1); 392 phys_avail[i++] = 0; 393 phys_avail[i] = 0; 394 395 init_param2(physmem); 396 kdb_init(); 397 return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP - 398 sizeof(struct pcb))); 399} |