From nobody Fri Jan 07 13:30:59 2022 X-Original-To: dev-commits-src-all@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 CEBCB19408BE; Fri, 7 Jan 2022 13:31:01 +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 4JVkd00G8Nz4hXV; Fri, 7 Jan 2022 13:30:59 +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 682FD4049; Fri, 7 Jan 2022 13:30:59 +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 207DUxpo033079; Fri, 7 Jan 2022 13:30:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 207DUx7f033078; Fri, 7 Jan 2022 13:30:59 GMT (envelope-from git) Date: Fri, 7 Jan 2022 13:30:59 GMT Message-Id: <202201071330.207DUx7f033078@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: 6d73b43abf23 - stable/13 - mips: Implement suword16 List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6d73b43abf2393ac3ab600f449038346ac08368e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641562260; 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=J8Q11C3hEN6bIKm0eFEToyxb5Kl1vbEQGtKAQ8VVU9Q=; b=FABacljbY92UsIqIdf5XmhUYEUduh9Jva7Lkfsl/rJ+FdXTpbz2R0DxWx6iG+lkyOLrJov BnmxjZry5EAgNO3rcPxSvfaQww4Fnci+vbQQhROk3OFPb8r9C/oYx3EdSnf7xItIb6hj/U 8StrqCiwh0csAf3O1jU4nnR7T8eTfgq0jx317wiNiDw02YhvR3u+m2kCpKAo+A3V8gvXH2 nJKbPB4C/CxwhpnmqCis8v8vSBb1QBPJkbse4n8/LjATO3/84BSZCrSlSn98YMF72UuRgD /avJLIsb1qwl208/l2ijU2c+i58f/SGEmz6JWUYKaLKBNWVwXqf5uUIyTxkcZg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641562260; a=rsa-sha256; cv=none; b=ItmzIm1mqaY7TE5AqST07r6+KFVdLxrZOlX4CYED2H7A3kphyHyp+l4qKfJVNsyQIoXta5 Q0H3jGi9vTMHUKvSy48eI8wgk1xnalneM6cCZk9ywW9SGo8/fEGgMz0uk4WDeSXfM1AlnW 3BehRbSrdiZio3yp47gijr7JP+1rojTk1m86ppxCXOZvGDu6/kRyjS+dKesKhAMugIUAQo jLz9Wdr/F63+RflfMFiV3+uDWu3Cl7j20mY40TK1vq7FWd8UnPGLGMV3pkPUlCfQw0WS/w IBaTfs6eGDOvh6mom/QQlpGEupVe98XpAMslfzKOEKgXveY5xNZ0Zym1NmKeoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=6d73b43abf2393ac3ab600f449038346ac08368e commit 6d73b43abf2393ac3ab600f449038346ac08368e Author: Hans Petter Selasky AuthorDate: 2022-01-07 13:30:18 +0000 Commit: Hans Petter Selasky CommitDate: 2022-01-07 13:30:18 +0000 mips: Implement suword16 (cherry picked from commit ac672e747ff15e24ffa99f11c11f27ae305e988f) --- 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 13a2d32a156c..cfcdc27b1d0e 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)