diff options
author | bde <bde@FreeBSD.org> | 1999-08-29 09:03:58 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-08-29 09:03:58 +0000 |
commit | b40f30707d14d710c90e70efe406d062ea6b9f7d (patch) | |
tree | bb52e5f0c44c92782a9e2e03a9aa3e425a376f9d /sys/dev/bktr/bktr_core.c | |
parent | a932c8483a31262b22f6f0ccc03e264207884b41 (diff) | |
download | FreeBSD-src-b40f30707d14d710c90e70efe406d062ea6b9f7d.zip FreeBSD-src-b40f30707d14d710c90e70efe406d062ea6b9f7d.tar.gz |
Don't restrict our requests for contiguous memory to addresses >= 1MB.
This fixes, at least, panics in ncr_attach() on i386's with about 5MB
of memory. The restriction was a hack to leave some low memory for ISA
DMA, but on i386's we now allocate pages from the top down, so all the
restriction did was cause our allocations to fail when there is no free
memory above 1MB.
Diffstat (limited to 'sys/dev/bktr/bktr_core.c')
-rw-r--r-- | sys/dev/bktr/bktr_core.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c index 46cf72e..71c38fd 100644 --- a/sys/dev/bktr/bktr_core.c +++ b/sys/dev/bktr/bktr_core.c @@ -7019,10 +7019,9 @@ get_bktr_mem( int unit, unsigned size ) { vm_offset_t addr = 0; - addr = vm_page_alloc_contig(size, 0x100000, 0xffffffff, 1<<24); + addr = vm_page_alloc_contig(size, 0, 0xffffffff, 1<<24); if (addr == 0) - addr = vm_page_alloc_contig(size, 0x100000, 0xffffffff, - PAGE_SIZE); + addr = vm_page_alloc_contig(size, 0, 0xffffffff, PAGE_SIZE); if (addr == 0) { printf("bktr%d: Unable to allocate %d bytes of memory.\n", unit, size); @@ -7479,10 +7478,9 @@ get_bktr_mem( int unit, unsigned size ) { vm_offset_t addr = 0; - addr = vm_page_alloc_contig(size, 0x100000, 0xffffffff, 1<<24); + addr = vm_page_alloc_contig(size, 0, 0xffffffff, 1<<24); if (addr == 0) - addr = vm_page_alloc_contig(size, 0x100000, 0xffffffff, - PAGE_SIZE); + addr = vm_page_alloc_contig(size, 0, 0xffffffff, PAGE_SIZE); if (addr == 0) { printf("bktr%d: Unable to allocate %d bytes of memory.\n", unit, size); |