From nobody Sun Dec 19 12:49:10 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3802718FBD24; Sun, 19 Dec 2021 12:49:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JH2bV61Zlz4hy6; Sun, 19 Dec 2021 12:49:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AE6D022E8F; Sun, 19 Dec 2021 12:49:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BJCnAtt013562; Sun, 19 Dec 2021 12:49:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BJCnAeK013561; Sun, 19 Dec 2021 12:49:10 GMT (envelope-from git) Date: Sun, 19 Dec 2021 12:49:10 GMT Message-Id: <202112191249.1BJCnAeK013561@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jessica Clarke Subject: git: ac672e747ff1 - main - mips: Implement suword16 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jrtc27 X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac672e747ff15e24ffa99f11c11f27ae305e988f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639918150; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=0vdGlwXvKx7fpcMKJvemh+7tRYO6TijlRCXv/zOyThk=; b=Crkk5oh6tLe5YxuHfvlScEpgtbeSvfTRQacrtfN8pIeZvoDIGPwSGP0I1aq7KRrZ2AnLK8 oP00DZvD78AYTM0/LUiD41sDSuq0titFMpYHL9fVyr+jb4nlZxnTkbu1Ps48xvIClXFXKP g5ByfMePx4Cem9Zm8iLiuxW9lfErsGxU0VwXvlxkfTIHmMlAviVklYiSPRjQ7p7AxXZRVR IgvNvGb/cCfSaKSDS9/H97s50I3Di5uZ63EfY8lZzV0XJYw3sjOWm6FqUFMKLM3hGkYaBM kzfV0C3c7d/pRoeXE45fzme5EJO3/gGL0KbfTKvugjiAVY62mI2YKE/nS6P3iA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639918150; a=rsa-sha256; cv=none; b=DCo17TOpB5Jg5diEgC8Q9fLl+2OYgXwK5vOYjcF0MvM1LGfRMI06SkFacTZ2JM0xkgkvLM 4w5iw0NlDTnwtAsA18yR499UL8YJO2QJb9+MFsgi1w6mxFmsAFoUdj92GB5C8MLZVe8x+N xoe6c+oSCKWJskHE9ZpYRelYlwNaXPCAtpmnBHiOjGRu6e85mjF9WvaeKwq2XIDs2a+F29 625QS7KylZ9ZGP2vi/WSPgzzezqJMmUQExyGXRXn1nvx22LmMXRaFo/8IfmiGcZPhhDBFV tDGPaAjuJkP8bCL6TKW+EhQOIXRYIFBS35dTMJTX/cIGs6clTaQDmncfCrwNug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jrtc27: URL: https://cgit.FreeBSD.org/src/commit/?id=ac672e747ff15e24ffa99f11c11f27ae305e988f commit ac672e747ff15e24ffa99f11c11f27ae305e988f Author: Jessica Clarke AuthorDate: 2021-12-19 12:48:49 +0000 Commit: Jessica Clarke CommitDate: 2021-12-19 12:48:49 +0000 mips: Implement suword16 This fixes building USB-using kernels after 0ec590d24e41. Fixes: 0ec590d24e41 ("usb: add 32-bit compat for FIFOs") --- sys/mips/mips/support.S | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sys/mips/mips/support.S b/sys/mips/mips/support.S index 9fd5b919d89e..50aefc1fb9d0 100644 --- a/sys/mips/mips/support.S +++ b/sys/mips/mips/support.S @@ -272,6 +272,19 @@ LEAF(fubyte) PTR_S zero, U_PCB_ONFAULT(v1) END(fubyte) +LEAF(suword16) + PTR_LA v0, fswberr + blt a0, zero, fswberr # make sure address is in user space + nop + GET_CPU_PCPU(v1) + PTR_L v1, PC_CURPCB(v1) + PTR_S v0, U_PCB_ONFAULT(v1) + sh a1, 0(a0) # store short + PTR_S zero, U_PCB_ONFAULT(v1) + j ra + move v0, zero +END(suword16) + LEAF(suword32) #ifndef __mips_n64 XLEAF(suword)