shithub: riscv

Download patch

ref: 662aff21a83a9159ed3ffb0d14ebeafecaecf762
parent: bfc8cdfff5aba1da7ddef1c2ef7e1167f8dd2e8d
parent: c474179f9a6428bb81a78d20f43cf982125d5d34
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat May 9 22:44:37 EDT 2020

merge

--- a/sys/src/9/port/usbxhci.c
+++ b/sys/src/9/port/usbxhci.c
@@ -1239,7 +1239,7 @@
 	slot->nep = 1;
 	ring->slot = slot;
 	ring->doorbell = &ctlr->dba[slot->id];
-	ring->ctx = &slot->obase[8];
+	ring->ctx = &slot->obase[8<<ctlr->csz];
 
 	/* (input) control context */
 	w = slot->ibase;