at91_machdep.c (237429) | at91_machdep.c (238189) |
---|---|
1/*- 2 * Copyright (c) 1994-1998 Mark Brinicombe. 3 * Copyright (c) 1994 Brini. 4 * All rights reserved. 5 * 6 * This code is derived from software written for Brini by Mark Brinicombe 7 * 8 * Redistribution and use in source and binary forms, with or without --- 30 unchanged lines hidden (view full) --- 39 * Machine dependant functions for kernel setup 40 * 41 * This file needs a lot of work. 42 * 43 * Created : 17/09/94 44 */ 45 46#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994-1998 Mark Brinicombe. 3 * Copyright (c) 1994 Brini. 4 * All rights reserved. 5 * 6 * This code is derived from software written for Brini by Mark Brinicombe 7 * 8 * Redistribution and use in source and binary forms, with or without --- 30 unchanged lines hidden (view full) --- 39 * Machine dependant functions for kernel setup 40 * 41 * This file needs a lot of work. 42 * 43 * Created : 17/09/94 44 */ 45 46#include <sys/cdefs.h> |
47__FBSDID("$FreeBSD: head/sys/arm/at91/at91_machdep.c 237429 2012-06-22 05:54:34Z imp $"); | 47__FBSDID("$FreeBSD: head/sys/arm/at91/at91_machdep.c 238189 2012-07-07 05:02:39Z imp $"); |
48 49#define _ARM32_BUS_DMA_PRIVATE 50#include <sys/param.h> 51#include <sys/systm.h> 52#include <sys/sysproto.h> 53#include <sys/signalvar.h> 54#include <sys/imgact.h> 55#include <sys/kernel.h> --- 9 unchanged lines hidden (view full) --- 65#include <sys/bio.h> 66#include <sys/bus.h> 67#include <sys/buf.h> 68#include <sys/exec.h> 69#include <sys/kdb.h> 70#include <sys/msgbuf.h> 71#include <machine/reg.h> 72#include <machine/cpu.h> | 48 49#define _ARM32_BUS_DMA_PRIVATE 50#include <sys/param.h> 51#include <sys/systm.h> 52#include <sys/sysproto.h> 53#include <sys/signalvar.h> 54#include <sys/imgact.h> 55#include <sys/kernel.h> --- 9 unchanged lines hidden (view full) --- 65#include <sys/bio.h> 66#include <sys/bus.h> 67#include <sys/buf.h> 68#include <sys/exec.h> 69#include <sys/kdb.h> 70#include <sys/msgbuf.h> 71#include <machine/reg.h> 72#include <machine/cpu.h> |
73#include <machine/board.h> |
|
73 74#include <vm/vm.h> 75#include <vm/pmap.h> 76#include <vm/vm_object.h> 77#include <vm/vm_page.h> 78#include <vm/vm_pager.h> 79#include <vm/vm_map.h> 80#include <machine/pmap.h> --- 316 unchanged lines hidden (view full) --- 397static void 398at91_soc_id(void) 399{ 400 401 if (!at91_try_id(AT91_DBGU0)) 402 at91_try_id(AT91_DBGU1); 403} 404 | 74 75#include <vm/vm.h> 76#include <vm/pmap.h> 77#include <vm/vm_object.h> 78#include <vm/vm_page.h> 79#include <vm/vm_pager.h> 80#include <vm/vm_map.h> 81#include <machine/pmap.h> --- 316 unchanged lines hidden (view full) --- 398static void 399at91_soc_id(void) 400{ 401 402 if (!at91_try_id(AT91_DBGU0)) 403 at91_try_id(AT91_DBGU1); 404} 405 |
406#ifdef ARM_MANY_BOARD 407/* likely belongs in arm/arm/machdep.c, but since board_init is still at91 only... */ 408SET_DECLARE(arm_board_set, const struct arm_board); 409 410/* Not yet fully functional, but enough to build ATMEL config */ 411static long 412board_init(void) 413{ 414 return -1; 415} 416#endif 417 |
|
405void * 406initarm(struct arm_boot_params *abp) 407{ 408 struct pv_addr kernel_l1pt; 409 struct pv_addr dpcpu; 410 int loop, i; 411 u_int l1pagetable; 412 vm_offset_t freemempos; --- 223 unchanged lines hidden --- | 418void * 419initarm(struct arm_boot_params *abp) 420{ 421 struct pv_addr kernel_l1pt; 422 struct pv_addr dpcpu; 423 int loop, i; 424 u_int l1pagetable; 425 vm_offset_t freemempos; --- 223 unchanged lines hidden --- |