From owner-svn-src-all@freebsd.org Mon Apr 16 17:43:27 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A701F97879; Mon, 16 Apr 2018 17:43:27 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C1F8F83A93; Mon, 16 Apr 2018 17:43:26 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BCFB2208C9; Mon, 16 Apr 2018 17:43:26 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3GHhQZT043010; Mon, 16 Apr 2018 17:43:26 GMT (envelope-from brooks@FreeBSD.org) Received: (from brooks@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3GHhQhU043009; Mon, 16 Apr 2018 17:43:26 GMT (envelope-from brooks@FreeBSD.org) Message-Id: <201804161743.w3GHhQhU043009@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brooks set sender to brooks@FreeBSD.org using -f From: Brooks Davis Date: Mon, 16 Apr 2018 17:43:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r332629 - head/sys/mips/mips X-SVN-Group: head X-SVN-Commit-Author: brooks X-SVN-Commit-Paths: head/sys/mips/mips X-SVN-Commit-Revision: 332629 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2018 17:43:27 -0000 Author: brooks Date: Mon Apr 16 17:43:26 2018 New Revision: 332629 URL: https://svnweb.freebsd.org/changeset/base/332629 Log: Remove unused badaddr() function. Reviewed by: jmallett Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15078 Modified: head/sys/mips/mips/support.S Modified: head/sys/mips/mips/support.S ============================================================================== --- head/sys/mips/mips/support.S Mon Apr 16 17:30:33 2018 (r332628) +++ head/sys/mips/mips/support.S Mon Apr 16 17:43:26 2018 (r332629) @@ -105,38 +105,6 @@ .text /* - * See if access to addr with a len type instruction causes a machine check. - * len is length of access (1=byte, 2=short, 4=int) - * - * badaddr(addr, len) - * char *addr; - * int len; - */ -LEAF(badaddr) - PTR_LA v0, baderr - GET_CPU_PCPU(v1) - PTR_L v1, PC_CURPCB(v1) - bne a1, 1, 2f - PTR_S v0, U_PCB_ONFAULT(v1) - b 5f - lbu v0, (a0) -2: - bne a1, 2, 4f - nop - b 5f - lhu v0, (a0) -4: - lw v0, (a0) -5: - PTR_S zero, U_PCB_ONFAULT(v1) - j ra - move v0, zero # made it w/o errors -baderr: - j ra - li v0, 1 # trap sends us here -END(badaddr) - -/* * int copystr(void *kfaddr, void *kdaddr, size_t maxlen, size_t *lencopied) * Copy a NIL-terminated string, at most maxlen characters long. Return the * number of characters copied (including the NIL) in *lencopied. If the