summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-06-10 20:31:00 +0000
committerjhb <jhb@FreeBSD.org>2004-06-10 20:31:00 +0000
commitf7c8770debc1cb4e4c0aa95cd3a49dbf7072d704 (patch)
tree64c289342d49b723657e06e2e9f7474c95c59775 /sys/amd64/include
parent30a30620eea7f0af192d7e3c5dbf11e77ae4a6cc (diff)
downloadFreeBSD-src-f7c8770debc1cb4e4c0aa95cd3a49dbf7072d704.zip
FreeBSD-src-f7c8770debc1cb4e4c0aa95cd3a49dbf7072d704.tar.gz
Remove atdevbase and replace it's remaining uses with direct references to
KERNBASE instead.
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/md_var.h1
-rw-r--r--sys/amd64/include/pc/bios.h4
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h
index 2f37e30..2e36bd8 100644
--- a/sys/amd64/include/md_var.h
+++ b/sys/amd64/include/md_var.h
@@ -37,7 +37,6 @@
*/
extern long Maxmem;
-extern u_long atdevbase; /* offset in virtual memory of ISA io mem */
extern u_int basemem;
extern int busdma_swi_pending;
extern u_int cpu_exthigh;
diff --git a/sys/amd64/include/pc/bios.h b/sys/amd64/include/pc/bios.h
index 32b6a52..b8d3991 100644
--- a/sys/amd64/include/pc/bios.h
+++ b/sys/amd64/include/pc/bios.h
@@ -64,8 +64,8 @@ extern int bios32_SDlookup(struct bios32_SDentry *ent);
extern u_int32_t bios_sigsearch(u_int32_t start, u_char *sig, int siglen,
int paralen, int sigofs);
-#define BIOS_PADDRTOVADDR(x) (((x) - ISA_HOLE_START) + atdevbase)
-#define BIOS_VADDRTOPADDR(x) (((x) - atdevbase) + ISA_HOLE_START)
+#define BIOS_PADDRTOVADDR(x) ((x) + KERNBASE)
+#define BIOS_VADDRTOPADDR(x) ((x) - KERNBASE)
/*
OpenPOWER on IntegriCloud