aim_machdep.c (209975) | aim_machdep.c (212054) |
---|---|
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 209975 2010-07-13 05:32:19Z nwhitehorn $"); | 58__FBSDID("$FreeBSD: head/sys/powerpc/aim/machdep.c 212054 2010-08-31 15:27:46Z nwhitehorn $"); |
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/proc.h> --- 96 unchanged lines hidden (view full) --- 163 164#ifndef __powerpc64__ 165struct bat battable[16]; 166#endif 167 168struct kva_md_info kmi; 169 170static void | 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/proc.h> --- 96 unchanged lines hidden (view full) --- 163 164#ifndef __powerpc64__ 165struct bat battable[16]; 166#endif 167 168struct kva_md_info kmi; 169 170static void |
171powerpc_ofw_shutdown(void *junk, int howto) 172{ 173 if (howto & RB_HALT) { 174 OF_halt(); 175 } 176 OF_reboot(); 177} 178 179static void | |
180cpu_startup(void *dummy) 181{ 182 183 /* 184 * Initialise the decrementer-based clock. 185 */ 186 decr_init(); 187 --- 40 unchanged lines hidden (view full) --- 228 printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count), 229 ptoa(cnt.v_free_count) / 1048576); 230 231 /* 232 * Set up buffers, so they can be used to read disk labels. 233 */ 234 bufinit(); 235 vm_pager_bufferinit(); | 171cpu_startup(void *dummy) 172{ 173 174 /* 175 * Initialise the decrementer-based clock. 176 */ 177 decr_init(); 178 --- 40 unchanged lines hidden (view full) --- 219 printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count), 220 ptoa(cnt.v_free_count) / 1048576); 221 222 /* 223 * Set up buffers, so they can be used to read disk labels. 224 */ 225 bufinit(); 226 vm_pager_bufferinit(); |
236 237 EVENTHANDLER_REGISTER(shutdown_final, powerpc_ofw_shutdown, 0, 238 SHUTDOWN_PRI_LAST); | |
239} 240 241extern char kernel_text[], _end[]; 242 243#ifndef __powerpc64__ 244/* Bits for running on 64-bit systems in 32-bit mode. */ 245extern void *testppc64, *testppc64size; 246extern void *restorebridge, *restorebridgesize; --- 580 unchanged lines hidden --- | 227} 228 229extern char kernel_text[], _end[]; 230 231#ifndef __powerpc64__ 232/* Bits for running on 64-bit systems in 32-bit mode. */ 233extern void *testppc64, *testppc64size; 234extern void *restorebridge, *restorebridgesize; --- 580 unchanged lines hidden --- |