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
This commit is contained in:
parent
46ec96ceb4
commit
b922a542ab
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1 2006/04/07 13:57:43 cherry Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.2 2009/07/20 11:23:04 kiyohara Exp $
|
||||
#
|
||||
|
||||
SRCS+= __assert.c __main.c memset.c skpc.c scanc.c random.c \
|
||||
|
@ -8,5 +8,5 @@ SRCS+= __assert.c __main.c memset.c skpc.c scanc.c random.c \
|
|||
memchr.c
|
||||
|
||||
SRCS+= divdi3.S divsi3.S modsi3.S moddi3.S udivdi3.S udivsi3.S \
|
||||
umoddi3.S umodsi3.S bswap32.S bswap16.S ntohl.S htonl.S \
|
||||
umoddi3.S umodsi3.S bswap64.S bswap32.S bswap16.S ntohl.S htonl.S \
|
||||
memcpy.S
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
/* $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"
|
|
@ -0,0 +1,45 @@
|
|||
/* $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)
|
Loading…
Reference in New Issue