Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev sun4v: add vnet driver from openbsd - c...
details: https://anonhg.NetBSD.org/src/rev/ce22bfa1e5f7
branches: trunk
changeset: 953288:ce22bfa1e5f7
user: palle <palle%NetBSD.org@localhost>
date: Thu Mar 04 20:59:39 2021 +0000
description:
sun4v: add vnet driver from openbsd - compiles but probably does not work yet - still WIP (now with NetBSD cvs tag and compiles for 32-bit SUN4U
diffstat:
sys/arch/sparc64/dev/vnet.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 105c49f82e96 -r ce22bfa1e5f7 sys/arch/sparc64/dev/vnet.c
--- a/sys/arch/sparc64/dev/vnet.c Thu Mar 04 20:30:39 2021 +0000
+++ b/sys/arch/sparc64/dev/vnet.c Thu Mar 04 20:59:39 2021 +0000
@@ -1,3 +1,4 @@
+/* $NetBSD: vnet.c,v 1.2 2021/03/04 20:59:39 palle Exp $ */
/* $OpenBSD: vnet.c,v 1.62 2020/07/10 13:26:36 patrick Exp $ */
/*
* Copyright (c) 2009, 2015 Mark Kettenis
@@ -265,7 +266,7 @@
sc->sc_tx_ino = ca->ca_tx_ino;
sc->sc_rx_ino = ca->ca_rx_ino;
- printf(": ivec 0x%lx, 0x%lx", sc->sc_tx_ino, sc->sc_rx_ino);
+ printf(": ivec 0x%" PRIx64 ", 0x%" PRIx64, sc->sc_tx_ino, sc->sc_rx_ino);
/*
* Un-configure queues before registering interrupt handlers,
@@ -488,7 +489,7 @@
if (rx_head == rx_tail)
return (0);
- lp = (struct ldc_pkt *)(lc->lc_rxq->lq_va + rx_head);
+ lp = (struct ldc_pkt *)(uintptr_t)(lc->lc_rxq->lq_va + rx_head);
switch (lp->type) {
case LDC_CTRL:
ldc_rx_ctrl(lc, lp);
Home |
Main Index |
Thread Index |
Old Index