diff options
| author | KATO Takenori <kato@FreeBSD.org> | 1999-08-29 21:28:47 +0000 |
|---|---|---|
| committer | KATO Takenori <kato@FreeBSD.org> | 1999-08-29 21:28:47 +0000 |
| commit | 545a1c84b2be87d6d9a39326f4f61b1a10d3dc29 (patch) | |
| tree | e6c79bab0d1679b8fd86157126e695f555fe844d | |
| parent | 0b9373357659f7a0cbb67fa7c7ebcebe04c61e88 (diff) | |
Notes
| -rw-r--r-- | sys/conf/options.pc98 | 1 | ||||
| -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 |
5 files changed, 5 insertions, 15 deletions
diff --git a/sys/conf/options.pc98 b/sys/conf/options.pc98 index 9906c9b413ebf..79eb917aa4ec6 100644 --- a/sys/conf/options.pc98 +++ b/sys/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/conf/GENERIC b/sys/pc98/conf/GENERIC index 66e7681432520..991733b6f7bd5 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 66e7681432520..991733b6f7bd5 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 9906c9b413ebf..79eb917aa4ec6 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 95d71396ca084..6c0b2f23b5623 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); |
