summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/machdep.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-10-28 21:23:49 +0000
committerjhb <jhb@FreeBSD.org>2007-10-28 21:23:49 +0000
commitae8e7ec2a3a62350e0e8adf6cc88be3a8330aab9 (patch)
tree7b9079349353dab6e5c41cb3230d6c339d05d93e /sys/amd64/amd64/machdep.c
parent80e186726f434f12eda8b927b4d96a968a6753f5 (diff)
downloadFreeBSD-src-ae8e7ec2a3a62350e0e8adf6cc88be3a8330aab9.zip
FreeBSD-src-ae8e7ec2a3a62350e0e8adf6cc88be3a8330aab9.tar.gz
- Add constants for the different memory types in the SMAP table.
- Use the SMAP types and constants from <machine/pc/bios.h> in the boot code rather than duplicating it.
Diffstat (limited to 'sys/amd64/amd64/machdep.c')
-rw-r--r--sys/amd64/amd64/machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c
index 7252386..d79e87f 100644
--- a/sys/amd64/amd64/machdep.c
+++ b/sys/amd64/amd64/machdep.c
@@ -881,7 +881,7 @@ getmemsize(caddr_t kmdp, u_int64_t first)
printf("SMAP type=%02x base=%016lx len=%016lx\n",
smap->type, smap->base, smap->length);
- if (smap->type != 0x01)
+ if (smap->type != SMAP_TYPE_MEMORY)
continue;
if (smap->length == 0)
OpenPOWER on IntegriCloud