APM_DSVALUE_BUS is no longer with the addition of the correct fix to

machdep.c.  We no longer walk on the data segment the BIOS sets up.
This commit is contained in:
Nate Williams 1996-09-07 17:41:22 +00:00
parent c645dc1239
commit db81a742b3
2 changed files with 2 additions and 36 deletions

View File

@ -14,7 +14,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.47 1996/08/28 17:54:17 bde Exp $
* $Id: apm.c,v 1.48 1996/09/06 23:06:50 phk Exp $
*/
#include "apm.h"
@ -661,18 +661,6 @@ apmattach(struct isa_device *dvp)
{
#define APM_KERNBASE KERNBASE
struct apm_softc *sc = &apm_softc;
#ifdef APM_DSVALUE_BUG
caddr_t apm_bios_work;
/*
* XXX - Malloc enough space for the APM DS, and then copy the
* current DS into the new space since the DS setup by the
* APM bios is going to get wiped out.
*/
apm_bios_work = (caddr_t)malloc(apm_ds_limit, M_DEVBUF, M_NOWAIT);
bcopy((caddr_t)((apm_ds_base << 4) + APM_KERNBASE), apm_bios_work,
apm_ds_limit);
#endif /* APM_DSVALUE_BUG */
sc->initialized = 0;
@ -687,11 +675,6 @@ apmattach(struct isa_device *dvp)
sc->ds_limit = apm_ds_limit;
sc->cs_entry = apm_cs_entry;
#ifdef APM_DSVALUE_BUG
/* Set the DS base to point to the newly made copy of the APM DS */
sc->ds_base = (u_int)apm_bios_work;
#endif /* APM_DSVALUE_BUG */
/* Always call HLT in idle loop */
sc->always_halt_cpu = 1;

View File

@ -14,7 +14,7 @@
*
* Sep, 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
*
* $Id: apm.c,v 1.47 1996/08/28 17:54:17 bde Exp $
* $Id: apm.c,v 1.48 1996/09/06 23:06:50 phk Exp $
*/
#include "apm.h"
@ -661,18 +661,6 @@ apmattach(struct isa_device *dvp)
{
#define APM_KERNBASE KERNBASE
struct apm_softc *sc = &apm_softc;
#ifdef APM_DSVALUE_BUG
caddr_t apm_bios_work;
/*
* XXX - Malloc enough space for the APM DS, and then copy the
* current DS into the new space since the DS setup by the
* APM bios is going to get wiped out.
*/
apm_bios_work = (caddr_t)malloc(apm_ds_limit, M_DEVBUF, M_NOWAIT);
bcopy((caddr_t)((apm_ds_base << 4) + APM_KERNBASE), apm_bios_work,
apm_ds_limit);
#endif /* APM_DSVALUE_BUG */
sc->initialized = 0;
@ -687,11 +675,6 @@ apmattach(struct isa_device *dvp)
sc->ds_limit = apm_ds_limit;
sc->cs_entry = apm_cs_entry;
#ifdef APM_DSVALUE_BUG
/* Set the DS base to point to the newly made copy of the APM DS */
sc->ds_base = (u_int)apm_bios_work;
#endif /* APM_DSVALUE_BUG */
/* Always call HLT in idle loop */
sc->always_halt_cpu = 1;