diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2018-04-13 20:30:49 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2018-04-13 20:30:49 +0000 |
| commit | d86c1f0dc1b17d94a533b4d3e9228dff9cb3fb31 (patch) | |
| tree | 8ce470882fe1e1e9f05a895ac15e4d6aa42c5da4 /sys/dev/ppc/ppc.c | |
| parent | 1315f9b59f83b4ed83fccfd5a0e696267ede902f (diff) | |
Notes
Diffstat (limited to 'sys/dev/ppc/ppc.c')
| -rw-r--r-- | sys/dev/ppc/ppc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c index c4d423ff99c0..cb647f49914b 100644 --- a/sys/dev/ppc/ppc.c +++ b/sys/dev/ppc/ppc.c @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include <vm/vm.h> #include <vm/pmap.h> #include <machine/vmparam.h> +#include <machine/pc/bios.h> #endif #include <dev/ppbus/ppbconf.h> @@ -121,7 +122,7 @@ static char *ppc_epp_protocol[] = { " (EPP 1.9)", " (EPP 1.7)", 0 }; * BIOS printer list - used by BIOS probe. */ #define BIOS_PPC_PORTS 0x408 -#define BIOS_PORTS (short *)(KERNBASE+BIOS_PPC_PORTS) +#define BIOS_PORTS ((short *)BIOS_PADDRTOVADDR(BIOS_PPC_PORTS)) #define BIOS_MAX_PPC 4 #endif |
