diff options
author | nyan <nyan@FreeBSD.org> | 2007-06-05 11:49:56 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2007-06-05 11:49:56 +0000 |
commit | a1102c4ba80a3c5f9b3aae273d40fa06dbbeccc3 (patch) | |
tree | 730fa1147e0621e9bb2ba06d308342395696abdc /sys/pc98 | |
parent | 65f1a6c8bafc8c5d1538aa98876fd9d26e1f7f1a (diff) | |
download | FreeBSD-src-a1102c4ba80a3c5f9b3aae273d40fa06dbbeccc3.zip FreeBSD-src-a1102c4ba80a3c5f9b3aae273d40fa06dbbeccc3.tar.gz |
MFi386: revision 1.656
Add the machine-specific definitions for configuring the new physical
memory allocator.
Set the size of phys_avail[] and dump_avail[] using one of these
definitions.
Diffstat (limited to 'sys/pc98')
-rw-r--r-- | sys/pc98/pc98/machdep.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 1e5f6cf..0ef1291 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -186,7 +186,13 @@ static void freebsd4_sendsig(sig_t catcher, ksiginfo_t *, sigset_t *mask); long Maxmem = 0; long realmem = 0; -#define PHYSMAP_SIZE (2 * 16) +/* + * The number of PHYSMAP entries must be one less than the number of + * PHYSSEG entries because the PHYSMAP entry that spans the largest + * physical address that is accessible by ISA DMA is split into two + * PHYSSEG entries. + */ +#define PHYSMAP_SIZE (2 * (VM_PHYSSEG_MAX - 1)) vm_paddr_t phys_avail[PHYSMAP_SIZE + 2]; vm_paddr_t dump_avail[PHYSMAP_SIZE + 2]; |