Module Name: src
Committed By: palle
Date: Thu Mar 4 20:59:39 UTC 2021
Modified Files:
src/sys/arch/sparc64/dev: vnet.c
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc64/dev/vnet.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc64/dev/vnet.c
diff -u src/sys/arch/sparc64/dev/vnet.c:1.1 src/sys/arch/sparc64/dev/vnet.c:1.2
--- src/sys/arch/sparc64/dev/vnet.c:1.1 Thu Mar 4 20:17:00 2021
+++ src/sys/arch/sparc64/dev/vnet.c Thu Mar 4 20:59:39 2021
@@ -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 @@ vnet_attach(struct device *parent, struc
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 @@ FIXME openbsd
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);