diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 1999-07-23 14:51:54 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 1999-07-23 14:51:54 +0000 |
commit | 0c4211adf938b9cf62a9d70611c7125f752bcf72 (patch) | |
tree | fe07dfa5f8ab534377c53884588b452ffe762d7f /sys | |
parent | d429990c4cf36bea7cd41ae351c90195641918e6 (diff) |
Fix for UVM. (ok art@, as was last commit, missed it there)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_rl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/if_rl.c b/sys/dev/pci/if_rl.c index d8a3e47e99e..8645aebb62d 100644 --- a/sys/dev/pci/if_rl.c +++ b/sys/dev/pci/if_rl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rl.c,v 1.15 1999/06/29 06:02:36 jason Exp $ */ +/* $OpenBSD: if_rl.c,v 1.16 1999/07/23 14:51:53 ho Exp $ */ /* * Copyright (c) 1997, 1998 @@ -1321,8 +1321,13 @@ rl_attach(parent, self, aux) return; } +#ifndef UVM sc->rl_cdata.rl_rx_buf = (caddr_t) vm_page_alloc_contig( RL_RXBUFLEN + 32, 0x100000, 0xffffffff, PAGE_SIZE); +#else + sc->rl_cdata.rl_rx_buf = (caddr_t) uvm_pagealloc_contig( + RL_RXBUFLEN + 32, 0x100000, 0xffffffff, PAGE_SIZE); +#endif bzero(sc->rl_cdata.rl_rx_buf, RL_RXBUFLEN + 16); /* Leave a few bytes before the start of the RX ring buffer. */ |