From owner-freebsd-mips@FreeBSD.ORG Sun Apr 26 21:13:02 2009 Return-Path: Delivered-To: mips@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E77DB106568F for ; Sun, 26 Apr 2009 21:13:02 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 7AACF8FC1C for ; Sun, 26 Apr 2009 21:13:02 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 72A251CDD8; Sun, 26 Apr 2009 23:13:01 +0200 (CEST) Date: Sun, 26 Apr 2009 23:13:01 +0200 From: Ed Schouten To: mips@FreeBSD.org Message-ID: <20090426211301.GC58540@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z+buRVFir587KtL+" Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Cc: Subject: Remove insque()/remque() X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Apr 2009 21:13:03 -0000 --z+buRVFir587KtL+ Content-Type: multipart/mixed; boundary="8WKGInOJRMBXYFEc" Content-Disposition: inline --8WKGInOJRMBXYFEc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I just noticed support.S has some functions that are never called, namely insque() and remque(). We only had one consumer of these functions (netipx), but it used an inlined version of this function. I haven't tested this patch, but I don't have any reason to believe it breaks stuff. Anyway, I'm just sending this patch to you folks. Have fun with it! ;-) --=20 Ed Schouten WWW: http://80386.nl/ --8WKGInOJRMBXYFEc Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="que.diff" Content-Transfer-Encoding: quoted-printable Index: sys/mips/mips/support.S =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/mips/mips/support.S (revision 191520) +++ sys/mips/mips/support.S (working copy) @@ -581,34 +581,6 @@ li v0, -1 END(fswintrberr) =20 -/* - * Insert 'p' after 'q'. - * _insque(p, q) - * caddr_t p, q; - */ -LEAF(_insque) - lw v0, 0(a1) # v0 =3D q->next - sw a1, 4(a0) # p->prev =3D q - sw v0, 0(a0) # p->next =3D q->next - sw a0, 4(v0) # q->next->prev =3D p - j ra - sw a0, 0(a1) # q->next =3D p -END(_insque) - -/* - * Remove item 'p' from queue. - * _remque(p) - * caddr_t p; - */ -LEAF(_remque) - lw v0, 0(a0) # v0 =3D p->next - lw v1, 4(a0) # v1 =3D p->prev - nop - sw v0, 0(v1) # p->prev->next =3D p->next - j ra - sw v1, 4(v0) # p->next->prev =3D p->prev -END(_remque) - /*------------------------------------------------------------------------= -- * * Mips_GetCOUNT -- --8WKGInOJRMBXYFEc-- --z+buRVFir587KtL+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkn0zl0ACgkQ52SDGA2eCwVX3QCfZMy3BhcB6u8PwFpXYX60+iqV rdYAn0zWPaZp89WJGIFL51b5SzdvMq3g =zVgk -----END PGP SIGNATURE----- --z+buRVFir587KtL+--