machdep.c (170170) | machdep.c (177253) |
---|---|
1/* $NetBSD: arm32_machdep.c,v 1.44 2004/03/24 15:34:47 atatat Exp $ */ 2 3/*- 4 * Copyright (c) 2004 Olivier Houchard 5 * Copyright (c) 1994-1998 Mark Brinicombe. 6 * Copyright (c) 1994 Brini. 7 * All rights reserved. 8 * --- 30 unchanged lines hidden (view full) --- 39 * Machine dependant functions for kernel setup 40 * 41 * Created : 17/09/94 42 * Updated : 18/04/01 updated for new wscons 43 */ 44 45#include "opt_compat.h" 46#include <sys/cdefs.h> | 1/* $NetBSD: arm32_machdep.c,v 1.44 2004/03/24 15:34:47 atatat Exp $ */ 2 3/*- 4 * Copyright (c) 2004 Olivier Houchard 5 * Copyright (c) 1994-1998 Mark Brinicombe. 6 * Copyright (c) 1994 Brini. 7 * All rights reserved. 8 * --- 30 unchanged lines hidden (view full) --- 39 * Machine dependant functions for kernel setup 40 * 41 * Created : 17/09/94 42 * Updated : 18/04/01 updated for new wscons 43 */ 44 45#include "opt_compat.h" 46#include <sys/cdefs.h> |
47__FBSDID("$FreeBSD: head/sys/arm/arm/machdep.c 170170 2007-05-31 22:52:15Z attilio $"); | 47__FBSDID("$FreeBSD: head/sys/arm/arm/machdep.c 177253 2008-03-16 10:58:09Z rwatson $"); |
48 49#include <sys/param.h> 50#include <sys/proc.h> 51#include <sys/systm.h> 52#include <sys/bio.h> 53#include <sys/buf.h> 54#include <sys/bus.h> 55#include <sys/cons.h> --- 247 unchanged lines hidden (view full) --- 303 pmap_kenter_user(ARM_TP_ADDRESS, ARM_TP_ADDRESS); 304 arm_lock_cache_line(ARM_TP_ADDRESS); 305#else 306 m = vm_page_alloc(NULL, 0, VM_ALLOC_NOOBJ | VM_ALLOC_ZERO); 307 pmap_kenter_user(ARM_TP_ADDRESS, VM_PAGE_TO_PHYS(m)); 308#endif 309} 310 | 48 49#include <sys/param.h> 50#include <sys/proc.h> 51#include <sys/systm.h> 52#include <sys/bio.h> 53#include <sys/buf.h> 54#include <sys/bus.h> 55#include <sys/cons.h> --- 247 unchanged lines hidden (view full) --- 303 pmap_kenter_user(ARM_TP_ADDRESS, ARM_TP_ADDRESS); 304 arm_lock_cache_line(ARM_TP_ADDRESS); 305#else 306 m = vm_page_alloc(NULL, 0, VM_ALLOC_NOOBJ | VM_ALLOC_ZERO); 307 pmap_kenter_user(ARM_TP_ADDRESS, VM_PAGE_TO_PHYS(m)); 308#endif 309} 310 |
311SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL) | 311SYSINIT(cpu, SI_SUB_CPU, SI_ORDER_FIRST, cpu_startup, NULL); |
312 313/* Get current clock frequency for the given cpu id. */ 314int 315cpu_est_clockrate(int cpu_id, uint64_t *rate) 316{ 317 318 return (ENXIO); 319} --- 314 unchanged lines hidden --- | 312 313/* Get current clock frequency for the given cpu id. */ 314int 315cpu_est_clockrate(int cpu_id, uint64_t *rate) 316{ 317 318 return (ENXIO); 319} --- 314 unchanged lines hidden --- |