diff options
author | kmacy <kmacy@FreeBSD.org> | 2008-08-20 09:47:49 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2008-08-20 09:47:49 +0000 |
commit | e647d118595054a0a5d15caa48148e53a693af2f (patch) | |
tree | 573740dfc9bbfabcc5338e1b75fcfb9f1ec72364 /sys/dev/xen/netfront | |
parent | f827c5e9cbc554ac0b0d1f59c1457c7b5229364f (diff) | |
download | FreeBSD-src-e647d118595054a0a5d15caa48148e53a693af2f.zip FreeBSD-src-e647d118595054a0a5d15caa48148e53a693af2f.tar.gz |
change netfront to match xen31_6
fix console locking
Diffstat (limited to 'sys/dev/xen/netfront')
-rw-r--r-- | sys/dev/xen/netfront/netfront.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c index 472145a..8fb92d3 100644 --- a/sys/dev/xen/netfront/netfront.c +++ b/sys/dev/xen/netfront/netfront.c @@ -148,7 +148,7 @@ static int xennet_get_responses(struct netfront_info *np, * not the other way around. The size must track the free index arrays. */ struct xn_chain_data { - struct mbuf *xn_tx_chain[NET_TX_RING_SIZE+1]; + struct mbuf *xn_tx_chain[NET_TX_RING_SIZE+1]; struct mbuf *xn_rx_chain[NET_RX_RING_SIZE+1]; }; @@ -1203,7 +1203,7 @@ xennet_get_responses(struct netfront_info *np, mmu = np->rx_mmu + pages_flipped; MULTI_update_va_mapping(mcl, (u_long)vaddr, - (mfn << PAGE_SHIFT) | PG_RW | + (((vm_paddr_t)mfn) << PAGE_SHIFT) | PG_RW | PG_V | PG_M | PG_A, 0); pfn = (uint32_t)m->m_ext.ext_arg1; mmu->ptr = ((vm_paddr_t)mfn << PAGE_SHIFT) | |