diff options
author | kato <kato@FreeBSD.org> | 1999-08-29 21:28:47 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1999-08-29 21:28:47 +0000 |
commit | 32578c4daf30f866799a8b844ee4984fe01dac88 (patch) | |
tree | b51675e2587c31ea85824573b7440fa043649769 /sys/pc98 | |
parent | 0e47c5f37aa42d57474a8cdde348dda79034669b (diff) | |
download | FreeBSD-src-32578c4daf30f866799a8b844ee4984fe01dac88.zip FreeBSD-src-32578c4daf30f866799a8b844ee4984fe01dac88.tar.gz |
- Removed COMPAT_ATDISK from option because it is pseudo-device now.
- Fixed arguments of atcompat_dsinit() in diskslice_machdep.c.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/conf/GENERIC | 4 | ||||
-rw-r--r-- | sys/pc98/conf/GENERIC98 | 4 | ||||
-rw-r--r-- | sys/pc98/conf/options.pc98 | 1 | ||||
-rw-r--r-- | sys/pc98/pc98/diskslice_machdep.c | 10 |
4 files changed, 5 insertions, 14 deletions
diff --git a/sys/pc98/conf/GENERIC b/sys/pc98/conf/GENERIC index 66e7681..991733b 100644 --- a/sys/pc98/conf/GENERIC +++ b/sys/pc98/conf/GENERIC @@ -57,10 +57,6 @@ options SYSVSEM #SYSV-style semaphores options COM_MULTIPORT -# -# IBM-PC HDD support -#options COMPAT_ATDISK - # To make an SMP kernel, the next two are needed #options SMP # Symmetric MultiProcessor Kernel #options APIC_IO # Symmetric (APIC) I/O diff --git a/sys/pc98/conf/GENERIC98 b/sys/pc98/conf/GENERIC98 index 66e7681..991733b 100644 --- a/sys/pc98/conf/GENERIC98 +++ b/sys/pc98/conf/GENERIC98 @@ -57,10 +57,6 @@ options SYSVSEM #SYSV-style semaphores options COM_MULTIPORT -# -# IBM-PC HDD support -#options COMPAT_ATDISK - # To make an SMP kernel, the next two are needed #options SMP # Symmetric MultiProcessor Kernel #options APIC_IO # Symmetric (APIC) I/O diff --git a/sys/pc98/conf/options.pc98 b/sys/pc98/conf/options.pc98 index 9906c9b..79eb917 100644 --- a/sys/pc98/conf/options.pc98 +++ b/sys/pc98/conf/options.pc98 @@ -194,5 +194,4 @@ FPU_ERROR_BROKEN opt_npx.h PC98 opt_global.h EPSON_BOUNCEDMA opt_pc98.h EPSON_MEMWIN opt_pc98.h -COMPAT_ATDISK opt_pc98.h LINE30 opt_syscons.h diff --git a/sys/pc98/pc98/diskslice_machdep.c b/sys/pc98/pc98/diskslice_machdep.c index 95d7139..6c0b2f2 100644 --- a/sys/pc98/pc98/diskslice_machdep.c +++ b/sys/pc98/pc98/diskslice_machdep.c @@ -42,7 +42,7 @@ * PC9801 port by KATO Takenor <kato@eclogite.eps.nagoya-u.ac.jp> */ -#include "opt_pc98.h" +#include "compat_atdisk.h" #include <sys/param.h> #include <sys/systm.h> @@ -81,8 +81,8 @@ static void extended __P((char *dname, dev_t dev, struct disklabel *lp, #ifdef PC98 #define DPBLKNO(cyl,hd,sect) ((cyl)*(lp->d_secpercyl)) -#ifdef COMPAT_ATDISK -int atcompat_dsinit __P((char *dname, dev_t dev, +#if NCOMPAT_ATDISK > 0 +int atcompat_dsinit __P((dev_t dev, struct disklabel *lp, struct diskslices **sspp)); #endif #endif @@ -312,7 +312,7 @@ reread_mbr: ssp->dss_nslices = BASE_SLICE + 1; goto done; } -#ifdef COMPAT_ATDISK +#if NCOMPAT_ATDISK > 0 /* * Check magic number of 'extended format' for PC-9801. * If no magic, it may be formatted on IBM-PC. @@ -324,7 +324,7 @@ reread_mbr: /* IBM-PC HDD */ bp->b_flags = B_INVAL | B_AGE; brelse(bp); - return atcompat_dsinit(devtoname(bp->b_dev), dev, lp, sspp); + return atcompat_dsinit(dev, lp, sspp); } #endif dp0 = (struct dos_partition *)(cp + 512); |