summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-08-23 01:36:54 +0000
committerpeter <peter@FreeBSD.org>2001-08-23 01:36:54 +0000
commit0e5d70abed52b4986207aab177f88f8c9d12b2d2 (patch)
tree2a6e94d64a424c0e2ba538207576a99d566a429c /sys/pc98
parentbe26ed33a455eda0a4e6bcbd467a248bda9d7225 (diff)
downloadFreeBSD-src-0e5d70abed52b4986207aab177f88f8c9d12b2d2.zip
FreeBSD-src-0e5d70abed52b4986207aab177f88f8c9d12b2d2.tar.gz
Identical to i386/machdep.c rev 1.473: move submap initialization to MI.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/i386/machdep.c17
-rw-r--r--sys/pc98/pc98/machdep.c17
2 files changed, 12 insertions, 22 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index c388482..75b9110 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -211,9 +211,8 @@ vm_offset_t phys_avail[10];
/* must be 2 less so 0 0 can signal end of chunks */
#define PHYS_AVAIL_ARRAY_END ((sizeof(phys_avail) / sizeof(vm_offset_t)) - 2)
-static vm_offset_t buffer_sva, buffer_eva;
-vm_offset_t clean_sva, clean_eva;
-static vm_offset_t pager_sva, pager_eva;
+struct kva_md_info kmi;
+
static struct trapframe proc0_tf;
#ifndef SMP
static struct globaldata __globaldata;
@@ -226,14 +225,6 @@ static void
cpu_startup(dummy)
void *dummy;
{
- register unsigned i;
- register caddr_t v;
- vm_offset_t maxaddr;
- vm_size_t size = 0;
- int firstaddr;
- vm_offset_t minaddr;
- int physmem_est; /* in pages */
-
/*
* Good {morning,afternoon,evening,night}.
*/
@@ -261,6 +252,9 @@ cpu_startup(dummy)
}
}
+ vm_ksubmap_init(&kmi);
+
+#if 0
/*
* Calculate callout wheel size
*/
@@ -397,6 +391,7 @@ again:
}
mtx_init(&callout_lock, "callout", MTX_SPIN | MTX_RECURSE);
+#endif
#if defined(USERCONFIG)
userconfig();
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index c388482..75b9110 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -211,9 +211,8 @@ vm_offset_t phys_avail[10];
/* must be 2 less so 0 0 can signal end of chunks */
#define PHYS_AVAIL_ARRAY_END ((sizeof(phys_avail) / sizeof(vm_offset_t)) - 2)
-static vm_offset_t buffer_sva, buffer_eva;
-vm_offset_t clean_sva, clean_eva;
-static vm_offset_t pager_sva, pager_eva;
+struct kva_md_info kmi;
+
static struct trapframe proc0_tf;
#ifndef SMP
static struct globaldata __globaldata;
@@ -226,14 +225,6 @@ static void
cpu_startup(dummy)
void *dummy;
{
- register unsigned i;
- register caddr_t v;
- vm_offset_t maxaddr;
- vm_size_t size = 0;
- int firstaddr;
- vm_offset_t minaddr;
- int physmem_est; /* in pages */
-
/*
* Good {morning,afternoon,evening,night}.
*/
@@ -261,6 +252,9 @@ cpu_startup(dummy)
}
}
+ vm_ksubmap_init(&kmi);
+
+#if 0
/*
* Calculate callout wheel size
*/
@@ -397,6 +391,7 @@ again:
}
mtx_init(&callout_lock, "callout", MTX_SPIN | MTX_RECURSE);
+#endif
#if defined(USERCONFIG)
userconfig();
OpenPOWER on IntegriCloud