From 9164438ed2fcffd6fb86b7f31fa0f7d44c037da5 Mon Sep 17 00:00:00 2001 From: Benno Rice Date: Thu, 7 Mar 2002 10:15:17 +0000 Subject: Move tunable initialisation so it can get access to physmem. --- sys/powerpc/aim/machdep.c | 12 ++++++------ sys/powerpc/powerpc/machdep.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index c4bc5dc9835a..0f75ee40fdb5 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -359,12 +359,6 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args) */ cninit(); - /* - * Initialize tunables. - */ - init_param1(); - init_param2(physmem); - /* * XXX: Initialize the interrupt tables. */ @@ -405,6 +399,12 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args) ofmsr |= PSL_IR | PSL_DR; pmap_bootstrap(startkernel, endkernel); + /* + * Initialize tunables. + */ + init_param1(); + init_param2(physmem); + /* * Finish setting up thread0. */ diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c index c4bc5dc9835a..0f75ee40fdb5 100644 --- a/sys/powerpc/powerpc/machdep.c +++ b/sys/powerpc/powerpc/machdep.c @@ -359,12 +359,6 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args) */ cninit(); - /* - * Initialize tunables. - */ - init_param1(); - init_param2(physmem); - /* * XXX: Initialize the interrupt tables. */ @@ -405,6 +399,12 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, char *args) ofmsr |= PSL_IR | PSL_DR; pmap_bootstrap(startkernel, endkernel); + /* + * Initialize tunables. + */ + init_param1(); + init_param2(physmem); + /* * Finish setting up thread0. */ -- cgit v1.3