MFi386: revision 1.616.2.8.
MFC: Sync sizes of physmap[], phys_avail[], and dump_avail[] and bump up the sizes to handle systems with very fragmented memory maps.
This commit is contained in:
parent
f49c5315d1
commit
8fd98330ce
@ -186,8 +186,10 @@ static void freebsd4_sendsig(sig_t catcher, int sig, sigset_t *mask,
|
||||
long Maxmem = 0;
|
||||
long realmem = 0;
|
||||
|
||||
vm_paddr_t phys_avail[10];
|
||||
vm_paddr_t dump_avail[10];
|
||||
#define PHYSMAP_SIZE (2 * 16)
|
||||
|
||||
vm_paddr_t phys_avail[PHYSMAP_SIZE + 2];
|
||||
vm_paddr_t dump_avail[PHYSMAP_SIZE + 2];
|
||||
|
||||
/* must be 2 less so 0 0 can signal end of chunks */
|
||||
#define PHYS_AVAIL_ARRAY_END ((sizeof(phys_avail) / sizeof(phys_avail[0])) - 2)
|
||||
@ -1610,8 +1612,6 @@ sdtossd(sd, ssd)
|
||||
ssd->ssd_gran = sd->sd_gran;
|
||||
}
|
||||
|
||||
#define PHYSMAP_SIZE (2 * 8)
|
||||
|
||||
/*
|
||||
* Populate the (physmap) array with base/bound pairs describing the
|
||||
* available physical memory in the system, then test this memory and
|
||||
|
Loading…
x
Reference in New Issue
Block a user