Mon Jul 20 11:23:04 2009 UTC ()
Fix little bit, and add a few files.
  current status is to see following thread.
    http://mail-index.netbsd.org/port-ia64/2009/06/18/msg000102.html


(kiyohara)
diff -r1.1 -r1.2 src/sys/lib/libkern/arch/ia64/Makefile.inc
diff -r0 -r1.1 src/sys/lib/libkern/arch/ia64/bswap64.S
diff -r0 -r1.1 src/sys/lib/libkern/arch/ia64/byte_swap_8.S

cvs diff -r1.1 -r1.2 src/sys/lib/libkern/arch/ia64/Makefile.inc (expand / switch to unified diff)

--- src/sys/lib/libkern/arch/ia64/Makefile.inc 2006/04/07 13:57:43 1.1
+++ src/sys/lib/libkern/arch/ia64/Makefile.inc 2009/07/20 11:23:04 1.2
@@ -1,12 +1,12 @@ @@ -1,12 +1,12 @@
1# $NetBSD: Makefile.inc,v 1.1 2006/04/07 13:57:43 cherry Exp $ 1# $NetBSD: Makefile.inc,v 1.2 2009/07/20 11:23:04 kiyohara Exp $
2# 2#
3 3
4SRCS+= __assert.c __main.c memset.c skpc.c scanc.c random.c \ 4SRCS+= __assert.c __main.c memset.c skpc.c scanc.c random.c \
5 imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c \ 5 imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c \
6 strcasecmp.c strncasecmp.c strncmp.c strtoul.c ffs.c \ 6 strcasecmp.c strncasecmp.c strncmp.c strtoul.c ffs.c \
7 strncpy.c memcmp.c strcat.c strcpy.c strcmp.c strlen.c \ 7 strncpy.c memcmp.c strcat.c strcpy.c strcmp.c strlen.c \
8 memchr.c 8 memchr.c
9 9
10SRCS+= divdi3.S divsi3.S modsi3.S moddi3.S udivdi3.S udivsi3.S \ 10SRCS+= divdi3.S divsi3.S modsi3.S moddi3.S udivdi3.S udivsi3.S \
11 umoddi3.S umodsi3.S bswap32.S bswap16.S ntohl.S htonl.S \ 11 umoddi3.S umodsi3.S bswap64.S bswap32.S bswap16.S ntohl.S htonl.S \
12 memcpy.S 12 memcpy.S

File Added: src/sys/lib/libkern/arch/ia64/bswap64.S
/*	$NetBSD: bswap64.S,v 1.1 2009/07/20 11:23:04 kiyohara Exp $	*/
	
/*-
 * Copyright (c) 1996 Carnegie-Mellon University.
 * All rights reserved.
 *
 * Author: Chris G. Demetriou
 *
 * Permission to use, copy, modify and distribute this software and
 * its documentation is hereby granted, provided that both the copyright
 * notice and this permission notice appear in all copies of the
 * software, derivative works or modified versions, and any portions
 * thereof, and that both notices appear in supporting documentation.
 *
 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
 * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
 *
 * Carnegie Mellon requests users of this software to return to
 *
 *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
 *  School of Computer Science
 *  Carnegie Mellon University
 *  Pittsburgh PA 15213-3890
 *
 * any improvements or extensions that they make and grant Carnegie the
 * rights to redistribute these changes.
 *
 *	from: NetBSD: htonl.S,v 1.1 1996/04/17 22:36:52 cgd
 *	from: src/sys/libkern/ia64/htonl.S,v 1.2 2002/02/18 20:35:21
 *
 * $FreeBSD$
 */

#define	NAME	bswap64

#include "byte_swap_8.S"

File Added: src/sys/lib/libkern/arch/ia64/byte_swap_8.S
/*	$NetBSD: byte_swap_8.S,v 1.1 2009/07/20 11:23:04 kiyohara Exp $	*/

/*-
 * Copyright (c) 1996 Carnegie-Mellon University.
 * All rights reserved.
 *
 * Author: Chris G. Demetriou
 *
 * Permission to use, copy, modify and distribute this software and
 * its documentation is hereby granted, provided that both the copyright
 * notice and this permission notice appear in all copies of the
 * software, derivative works or modified versions, and any portions
 * thereof, and that both notices appear in supporting documentation.
 *
 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
 * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
 *
 * Carnegie Mellon requests users of this software to return to
 *
 *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
 *  School of Computer Science
 *  Carnegie Mellon University
 *  Pittsburgh PA 15213-3890
 *
 * any improvements or extensions that they make and grant Carnegie the
 * rights to redistribute these changes.
 */

#include <machine/asm.h>

#ifndef NAME
#error NAME not defined
#endif

/*
 * Byte-swap a 8-byte quantity.
 *   (Convert 0x0123456789012345 to 0x4523018967452301.)
 *
 * Argument is an unsigned 8-byte integer (u_int64_t).
 */
ENTRY(NAME, 1)
	mux1	r8=in0,@rev
	br.ret.sptk.few rp
END(NAME)