Deleted Added
full compact
machdep.c (170036) machdep.c (170170)
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 170036 2007-05-27 21:05:35Z marcel $");
58__FBSDID("$FreeBSD: head/sys/powerpc/aim/machdep.c 170170 2007-05-31 22:52:15Z attilio $");
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>

--- 146 unchanged lines hidden (view full) ---

213 printf("0x%08x - 0x%08x, %d bytes (%d pages)\n",
214 phys_avail[indx], phys_avail[indx + 1] - 1, size1,
215 size1 / PAGE_SIZE);
216 }
217 }
218
219 vm_ksubmap_init(&kmi);
220
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>

--- 146 unchanged lines hidden (view full) ---

213 printf("0x%08x - 0x%08x, %d bytes (%d pages)\n",
214 phys_avail[indx], phys_avail[indx + 1] - 1, size1,
215 size1 / PAGE_SIZE);
216 }
217 }
218
219 vm_ksubmap_init(&kmi);
220
221 printf("avail memory = %ld (%ld MB)\n", ptoa(VMCNT_GET(free_count)),
222 ptoa(VMCNT_GET(free_count)) / 1048576);
221 printf("avail memory = %ld (%ld MB)\n", ptoa(cnt.v_free_count),
222 ptoa(cnt.v_free_count) / 1048576);
223
224 /*
225 * Set up buffers, so they can be used to read disk labels.
226 */
227 bufinit();
228 vm_pager_bufferinit();
229
230 EVENTHANDLER_REGISTER(shutdown_final, powerpc_ofw_shutdown, 0,

--- 760 unchanged lines hidden ---
223
224 /*
225 * Set up buffers, so they can be used to read disk labels.
226 */
227 bufinit();
228 vm_pager_bufferinit();
229
230 EVENTHANDLER_REGISTER(shutdown_final, powerpc_ofw_shutdown, 0,

--- 760 unchanged lines hidden ---