From 92a69bc337c00c5a29ad35385319ac6ecdb36fff Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 5 Oct 1995 10:32:47 +0000 Subject: [PATCH] remove GCC divsi3 routines which are never used. --- sys/amd64/amd64/support.S | 17 +---------------- sys/amd64/amd64/support.s | 17 +---------------- sys/amd64/include/cpufunc.h | 5 +---- sys/i386/i386/support.s | 17 +---------------- sys/i386/include/cpufunc.h | 5 +---- 5 files changed, 5 insertions(+), 56 deletions(-) diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S index db0fa03c5e4e..4a89fd981517 100644 --- a/sys/amd64/amd64/support.S +++ b/sys/amd64/amd64/support.S @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.21 1995/03/11 03:49:50 phk Exp $ + * $Id: support.s,v 1.22 1995/05/02 05:20:26 davidg Exp $ */ #include "assym.s" /* system definitions */ @@ -41,21 +41,6 @@ #define KDSEL 0x10 /* kernel data selector */ #define IDXSHIFT 10 -/* - * Support routines for GCC, general C-callable functions - */ -ENTRY(__udivsi3) - movl 4(%esp),%eax - xorl %edx,%edx - divl 8(%esp) - ret - -ENTRY(__divsi3) - movl 4(%esp),%eax - cltd - idivl 8(%esp) - ret - /* * Support for reading real time clock registers */ diff --git a/sys/amd64/amd64/support.s b/sys/amd64/amd64/support.s index db0fa03c5e4e..4a89fd981517 100644 --- a/sys/amd64/amd64/support.s +++ b/sys/amd64/amd64/support.s @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.21 1995/03/11 03:49:50 phk Exp $ + * $Id: support.s,v 1.22 1995/05/02 05:20:26 davidg Exp $ */ #include "assym.s" /* system definitions */ @@ -41,21 +41,6 @@ #define KDSEL 0x10 /* kernel data selector */ #define IDXSHIFT 10 -/* - * Support routines for GCC, general C-callable functions - */ -ENTRY(__udivsi3) - movl 4(%esp),%eax - xorl %edx,%edx - divl 8(%esp) - ret - -ENTRY(__divsi3) - movl 4(%esp),%eax - cltd - idivl 8(%esp) - ret - /* * Support for reading real time clock registers */ diff --git a/sys/amd64/include/cpufunc.h b/sys/amd64/include/cpufunc.h index 94f8bcf8831e..1415042abed2 100644 --- a/sys/amd64/include/cpufunc.h +++ b/sys/amd64/include/cpufunc.h @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cpufunc.h,v 1.39 1995/08/08 04:50:52 dyson Exp $ + * $Id: cpufunc.h,v 1.40 1995/08/26 20:45:59 bde Exp $ */ /* @@ -355,11 +355,8 @@ void remque __P((void *a)); /* * XXX the following declarations document garbage in support.s. - * gcc hasn't needed _divsi* for years. * bcopy[bwx]() was used by pccons but isn't used now. */ -int __divsi3 __P((int factor1, int factor2)); -u_int __udivsi3 __P((u_int factor1, u_int factor2)); void bcopyb __P((const void *from, void *to, size_t len)); void bcopyw __P((const void *from, void *to, size_t len)); void bcopyx __P((const void *from, void *to, size_t len, diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s index db0fa03c5e4e..4a89fd981517 100644 --- a/sys/i386/i386/support.s +++ b/sys/i386/i386/support.s @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: support.s,v 1.21 1995/03/11 03:49:50 phk Exp $ + * $Id: support.s,v 1.22 1995/05/02 05:20:26 davidg Exp $ */ #include "assym.s" /* system definitions */ @@ -41,21 +41,6 @@ #define KDSEL 0x10 /* kernel data selector */ #define IDXSHIFT 10 -/* - * Support routines for GCC, general C-callable functions - */ -ENTRY(__udivsi3) - movl 4(%esp),%eax - xorl %edx,%edx - divl 8(%esp) - ret - -ENTRY(__divsi3) - movl 4(%esp),%eax - cltd - idivl 8(%esp) - ret - /* * Support for reading real time clock registers */ diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h index 94f8bcf8831e..1415042abed2 100644 --- a/sys/i386/include/cpufunc.h +++ b/sys/i386/include/cpufunc.h @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cpufunc.h,v 1.39 1995/08/08 04:50:52 dyson Exp $ + * $Id: cpufunc.h,v 1.40 1995/08/26 20:45:59 bde Exp $ */ /* @@ -355,11 +355,8 @@ void remque __P((void *a)); /* * XXX the following declarations document garbage in support.s. - * gcc hasn't needed _divsi* for years. * bcopy[bwx]() was used by pccons but isn't used now. */ -int __divsi3 __P((int factor1, int factor2)); -u_int __udivsi3 __P((u_int factor1, u_int factor2)); void bcopyb __P((const void *from, void *to, size_t len)); void bcopyw __P((const void *from, void *to, size_t len)); void bcopyx __P((const void *from, void *to, size_t len,