Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/alpha Initialize the VM page size before call...
details: https://anonhg.NetBSD.org/src/rev/93d7fb105215
branches: trunk
changeset: 509336:93d7fb105215
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 02 01:05:16 2001 +0000
description:
Initialize the VM page size before calling the platform init routine.
diffstat:
sys/arch/alpha/alpha/machdep.c | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diffs (56 lines):
diff -r f98e3fd71095 -r 93d7fb105215 sys/arch/alpha/alpha/machdep.c
--- a/sys/arch/alpha/alpha/machdep.c Tue May 01 22:19:09 2001 +0000
+++ b/sys/arch/alpha/alpha/machdep.c Wed May 02 01:05:16 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.242 2001/04/28 06:10:49 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.243 2001/05/02 01:05:16 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.242 2001/04/28 06:10:49 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.243 2001/05/02 01:05:16 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -354,6 +354,18 @@
trap_init();
/*
+ * find out this system's page size
+ */
+ PAGE_SIZE = hwrpb->rpb_page_size;
+ if (PAGE_SIZE != 8192)
+ panic("page size %d != 8192?!", PAGE_SIZE);
+
+ /*
+ * Initialize PAGE_SIZE-dependent variables.
+ */
+ uvm_setpagesize();
+
+ /*
* Find out what hardware we're on, and do basic initialization.
*/
cputype = hwrpb->rpb_type;
@@ -403,18 +415,6 @@
#endif
/*
- * find out this system's page size
- */
- PAGE_SIZE = hwrpb->rpb_page_size;
- if (PAGE_SIZE != 8192)
- panic("page size %d != 8192?!", PAGE_SIZE);
-
- /*
- * Initialize PAGE_SIZE-dependent variables.
- */
- uvm_setpagesize();
-
- /*
* Find the beginning and end of the kernel (and leave a
* bit of space before the beginning for the bootstrap
* stack).
Home |
Main Index |
Thread Index |
Old Index