diff options
| author | Peter Wemm <peter@FreeBSD.org> | 2001-01-16 09:10:34 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 2001-01-16 09:10:34 +0000 |
| commit | e44a0ea3114c5b4007d3b32d1ce7f5de983ef401 (patch) | |
| tree | 2e1743f501bac15257cea625ccb99c4d05fa2216 /sys/pc98 | |
| parent | 32f6256a49892a9f12b7d3eaa524e350c25c65b5 (diff) | |
Notes
Diffstat (limited to 'sys/pc98')
| -rw-r--r-- | sys/pc98/conf/GENERIC | 2 | ||||
| -rw-r--r-- | sys/pc98/i386/machdep.c | 5 | ||||
| -rw-r--r-- | sys/pc98/pc98/machdep.c | 5 |
3 files changed, 5 insertions, 7 deletions
diff --git a/sys/pc98/conf/GENERIC b/sys/pc98/conf/GENERIC index c2c8e0ec8f78f..ddc58bf35d5d2 100644 --- a/sys/pc98/conf/GENERIC +++ b/sys/pc98/conf/GENERIC @@ -18,7 +18,7 @@ # $FreeBSD$ machine pc98 -cpu I386_CPU +#cpu I386_CPU #Do not enable with other cpu types cpu I486_CPU cpu I586_CPU cpu I686_CPU diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 26ff15a3e599d..2db7319019f8d 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -1132,10 +1132,9 @@ cpu_setregs(void) cr0 = rcr0(); cr0 |= CR0_NE; /* Done by npxinit() */ cr0 |= CR0_MP | CR0_TS; /* Done at every execve() too. */ -#ifdef I386_CPU - if (cpu_class != CPUCLASS_386) +#ifndef I386_CPU + cr0 |= CR0_WP | CR0_AM; #endif - cr0 |= CR0_WP | CR0_AM; load_cr0(cr0); load_gs(_udatasel); } diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 26ff15a3e599d..2db7319019f8d 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -1132,10 +1132,9 @@ cpu_setregs(void) cr0 = rcr0(); cr0 |= CR0_NE; /* Done by npxinit() */ cr0 |= CR0_MP | CR0_TS; /* Done at every execve() too. */ -#ifdef I386_CPU - if (cpu_class != CPUCLASS_386) +#ifndef I386_CPU + cr0 |= CR0_WP | CR0_AM; #endif - cr0 |= CR0_WP | CR0_AM; load_cr0(cr0); load_gs(_udatasel); } |
