diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-09-25 17:29:02 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-09-25 17:29:02 +0000 |
commit | a0c34c5a2300c81f85c92ac6327b1d2ad3a56a77 (patch) | |
tree | dc2ea2b7bb3d1b975f75b1797e76f468c5369471 | |
parent | 86c08984c234813310e7ed79ac8d2df0a9b4521e (diff) | |
download | FreeBSD-src-a0c34c5a2300c81f85c92ac6327b1d2ad3a56a77.zip FreeBSD-src-a0c34c5a2300c81f85c92ac6327b1d2ad3a56a77.tar.gz |
Change contigmalloc() lower memory bound from 1MB to 0 to improve
chances of allocations succeeding on systems with small amounts of
RAM.
Pointed out by: bde
-rw-r--r-- | sys/dev/sf/if_sf.c | 2 | ||||
-rw-r--r-- | sys/dev/vr/if_vr.c | 2 | ||||
-rw-r--r-- | sys/pci/if_al.c | 2 | ||||
-rw-r--r-- | sys/pci/if_dm.c | 2 | ||||
-rw-r--r-- | sys/pci/if_rl.c | 2 | ||||
-rw-r--r-- | sys/pci/if_sf.c | 2 | ||||
-rw-r--r-- | sys/pci/if_sis.c | 2 | ||||
-rw-r--r-- | sys/pci/if_tl.c | 2 | ||||
-rw-r--r-- | sys/pci/if_vr.c | 2 | ||||
-rw-r--r-- | sys/pci/if_wb.c | 2 | ||||
-rw-r--r-- | sys/pci/if_xl.c | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index f9e9d3a..59d9a89 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -766,7 +766,7 @@ static int sf_attach(dev) /* Allocate the descriptor queues. */ sc->sf_ldata = contigmalloc(sizeof(struct sf_list_data), M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->sf_ldata == NULL) { printf("sf%d: no memory for list buffers!\n", unit); diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 18e7bdf..59c354f 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -756,7 +756,7 @@ static int vr_attach(dev) bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); sc->vr_ldata = contigmalloc(sizeof(struct vr_list_data), M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->vr_ldata == NULL) { printf("vr%d: no memory for list buffers!\n", unit); diff --git a/sys/pci/if_al.c b/sys/pci/if_al.c index 91046e0..246a58e 100644 --- a/sys/pci/if_al.c +++ b/sys/pci/if_al.c @@ -923,7 +923,7 @@ static int al_attach(dev) bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); sc->al_ldata = contigmalloc(sizeof(struct al_list_data), M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->al_ldata == NULL) { printf("al%d: no memory for list buffers!\n", unit); diff --git a/sys/pci/if_dm.c b/sys/pci/if_dm.c index 13a9e7f..96cd885 100644 --- a/sys/pci/if_dm.c +++ b/sys/pci/if_dm.c @@ -847,7 +847,7 @@ static int dm_attach(dev) bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); sc->dm_ldata = contigmalloc(sizeof(struct dm_list_data), M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->dm_ldata == NULL) { printf("dm%d: no memory for list buffers!\n", unit); diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c index 41483c0..a2e789d 100644 --- a/sys/pci/if_rl.c +++ b/sys/pci/if_rl.c @@ -912,7 +912,7 @@ static int rl_attach(dev) } sc->rl_cdata.rl_rx_buf = contigmalloc(RL_RXBUFLEN + 32, M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->rl_cdata.rl_rx_buf == NULL) { printf("rl%d: no memory for list buffers!\n", unit); diff --git a/sys/pci/if_sf.c b/sys/pci/if_sf.c index f9e9d3a..59d9a89 100644 --- a/sys/pci/if_sf.c +++ b/sys/pci/if_sf.c @@ -766,7 +766,7 @@ static int sf_attach(dev) /* Allocate the descriptor queues. */ sc->sf_ldata = contigmalloc(sizeof(struct sf_list_data), M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->sf_ldata == NULL) { printf("sf%d: no memory for list buffers!\n", unit); diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c index fbe57ed..68550a7 100644 --- a/sys/pci/if_sis.c +++ b/sys/pci/if_sis.c @@ -655,7 +655,7 @@ static int sis_attach(dev) bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); sc->sis_ldata = contigmalloc(sizeof(struct sis_list_data), M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->sis_ldata == NULL) { printf("sis%d: no memory for list buffers!\n", unit); diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c index 9c5ca1e..d7a776c 100644 --- a/sys/pci/if_tl.c +++ b/sys/pci/if_tl.c @@ -1223,7 +1223,7 @@ static int tl_attach(dev) * Now allocate memory for the TX and RX lists. */ sc->tl_ldata = contigmalloc(sizeof(struct tl_list_data), M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->tl_ldata == NULL) { bus_teardown_intr(dev, sc->tl_irq, sc->tl_intrhand); diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c index 18e7bdf..59c354f 100644 --- a/sys/pci/if_vr.c +++ b/sys/pci/if_vr.c @@ -756,7 +756,7 @@ static int vr_attach(dev) bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); sc->vr_ldata = contigmalloc(sizeof(struct vr_list_data), M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->vr_ldata == NULL) { printf("vr%d: no memory for list buffers!\n", unit); diff --git a/sys/pci/if_wb.c b/sys/pci/if_wb.c index 06043e0..e4efc84 100644 --- a/sys/pci/if_wb.c +++ b/sys/pci/if_wb.c @@ -928,7 +928,7 @@ static int wb_attach(dev) bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); sc->wb_ldata = contigmalloc(sizeof(struct wb_list_data) + 8, M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->wb_ldata == NULL) { printf("wb%d: no memory for list buffers!\n", unit); diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index 855f7cf..8b1e06a 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -1306,7 +1306,7 @@ static int xl_attach(dev) bcopy(eaddr, (char *)&sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); sc->xl_ldata = contigmalloc(sizeof(struct xl_list_data), M_DEVBUF, - M_NOWAIT, 0x100000, 0xffffffff, PAGE_SIZE, 0); + M_NOWAIT, 0, 0xffffffff, PAGE_SIZE, 0); if (sc->xl_ldata == NULL) { printf("xl%d: no memory for list buffers!\n", unit); |