From b40f30707d14d710c90e70efe406d062ea6b9f7d Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 29 Aug 1999 09:03:58 +0000 Subject: 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. --- sys/pci/meteor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/pci/meteor.c') diff --git a/sys/pci/meteor.c b/sys/pci/meteor.c index 47960c1..f306cc2 100644 --- a/sys/pci/meteor.c +++ b/sys/pci/meteor.c @@ -871,10 +871,9 @@ get_meteor_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("meteor%d: Unable to allocate %d bytes of memory.\n", unit, size); -- cgit v1.1