[toolchain-commits] [2013] trunk/uClibc/libc/string: Upstream r20410 | ricardw | 2007-11-12 13: 08:31 +0100 (Mon, 12 Nov 2007) | 1 line

2007-11-23 Thread bernds
Title: [2013] trunk/uClibc/libc/string: Upstream r20410 | ricardw | 2007-11-12 13:
 08:31 +0100 (Mon, 12 Nov 2007) | 1 line







Revision 2013
Author bernds
Date 2007-11-23 08:03:58 -0600 (Fri, 23 Nov 2007)


Log Message
Upstream r20410 | ricardw | 2007-11-12 13:08:31 +0100 (Mon, 12 Nov 2007) | 1 line

CRIS/CRISv32 architecture specific memcpy, memmove and memset.

Diffstat
 memcopy.h |   62 ++
 memcpy.c  |  264 
 memmove.c |  101 +++
 memset.c  |  271 ++
 4 files changed, 698 insertions(+)

Added Paths

trunk/uClibc/libc/string/cris/
trunk/uClibc/libc/string/cris/memcopy.h
trunk/uClibc/libc/string/cris/memcpy.c
trunk/uClibc/libc/string/cris/memmove.c
trunk/uClibc/libc/string/cris/memset.c




Diff

Added: trunk/uClibc/libc/string/cris/memcopy.h (0 => 2013)

--- trunk/uClibc/libc/string/cris/memcopy.h	(rev 0)
+++ trunk/uClibc/libc/string/cris/memcopy.h	2007-11-23 14:03:58 UTC (rev 2013)
@@ -0,0 +1,62 @@
+/* Copyright (C) 2001 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   Modified for use in uClibc (C) 2007 Axis Communications AB.
+   Minimal modifications: include path name and #undef of WORD_COPY_FWD/BWD
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#include ../generic/memcopy.h
+
+/* We override the word-copying macros, partly because misalignment in one
+   pointer isn't cause for a special function, partly because we want to
+   get rid of all the static functions in generic/memcopy.c; these macros 
+   are only used in memmove.c since we have arch-specific mempcpy, memcpy and
+   memset.  */
+
+#undef OP_T_THRES
+#define OP_T_THRES OPSIZ
+
+#undef WORD_COPY_FWD
+#define WORD_COPY_FWD(dst_bp, src_bp, nbytes_left, nbytes)		\
+  do	\
+{	\
+  unsigned long enddst_bp = dst_bp + nbytes - (nbytes % OPSIZ);	\
+  nbytes_left = (nbytes % OPSIZ);	\
+  while (dst_bp  (unsigned long) enddst_bp)			\
+	{\
+	  op_t x = *(op_t *) src_bp;	\
+	  src_bp += sizeof x;		\
+	  *(op_t *) dst_bp = x;		\
+	  dst_bp += sizeof x;		\
+	}\
+} while (0)
+
+#undef WORD_COPY_BWD
+#define WORD_COPY_BWD(dst_bp, src_bp, nbytes_left, nbytes)		\
+  do	\
+{	\
+  unsigned long enddst_bp = dst_bp - nbytes + (nbytes % OPSIZ);	\
+  nbytes_left = (nbytes % OPSIZ);	\
+  while (dst_bp  enddst_bp)	\
+	{\
+	  op_t x;			\
+	  src_bp -= sizeof x;		\
+	  x = *(op_t *) src_bp;		\
+	  dst_bp -= sizeof x;		\
+	  *(op_t *) dst_bp = x;		\
+	}\
+} while (0)


Added: trunk/uClibc/libc/string/cris/memcpy.c (0 => 2013)

--- trunk/uClibc/libc/string/cris/memcpy.c	(rev 0)
+++ trunk/uClibc/libc/string/cris/memcpy.c	2007-11-23 14:03:58 UTC (rev 2013)
@@ -0,0 +1,264 @@
+/* Copyright (C) 2001, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1994, 1995, 2000 Axis Communications AB.
+
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+/*##*/
+/*#-*/
+/*# */
+/*# FUNCTION NAME: memcpy() */
+/*# 

[toolchain-commits] [2011] trunk/uClibc: r20395 | carmelo | 2007-11-09 14:04:26 +0100 (Fri, 09 Nov 2007) | 1 line

2007-11-23 Thread bernds
Title: [2011] trunk/uClibc: r20395 | carmelo | 2007-11-09 14:04:26 +0100 (Fri,
  09 Nov 2007) | 1 line







Revision 2011
Author bernds
Date 2007-11-23 08:02:35 -0600 (Fri, 23 Nov 2007)


Log Message
r20395 | carmelo | 2007-11-09 14:04:26 +0100 (Fri, 09 Nov 2007) | 1 line

Fix build system to generate locale data instead of using pregenerated ones

Diffstat
 Makefile.in  |2 +-
 extra/locale/Makefile.in |4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

Modified Paths

trunk/uClibc/Makefile.in
trunk/uClibc/extra/locale/Makefile.in




Diff

Modified: trunk/uClibc/Makefile.in (2010 => 2011)

--- trunk/uClibc/Makefile.in	2007-11-23 14:01:21 UTC (rev 2010)
+++ trunk/uClibc/Makefile.in	2007-11-23 14:02:35 UTC (rev 2011)
@@ -103,7 +103,7 @@
 		mv -f $$tmp include/bits/sysnum.h; \
 	fi
 ifeq ($(UCLIBC_HAS_LOCALE),y)
-	$(MAKE) locale_headers
+	$(MAKE) -C extra/locale locale_headers
 endif
 
 pregen: headers


Modified: trunk/uClibc/extra/locale/Makefile.in (2010 => 2011)

--- trunk/uClibc/extra/locale/Makefile.in	2007-11-23 14:01:21 UTC (rev 2010)
+++ trunk/uClibc/extra/locale/Makefile.in	2007-11-23 14:02:35 UTC (rev 2011)
@@ -24,6 +24,8 @@
 BUILD_CFLAGS-gen_ldc += -D__WCHAR_ENABLED=1
 endif
 
+BUILD_CFLAGS-gen_locale := -D_GNU_SOURCE
+
 DEPH-locale := $(top_builddir)include/bits/sysnum.h
 DEPH-gen_locale := c8tables.h
 DEPH-gen_ldc := c8tables.h wctables.h locale_tables.h locale_collate.h
@@ -161,7 +163,7 @@
 
 $(locale_OUT)/uClibc_locale_data.h: $(locale_OUT)/lt_defines.h $(locale_OUT)/c8tables.h $(locale_OUT)/wctables.h $(locale_DIR)/locale_mmap.h | $(locale_SRC)
 	grep -v define __LC $  $@
-	cat $(wordlist 2,3,4,$^)  $@
+	cat $(wordlist 2,4,$^)  $@
 
 endif
 






___
Toolchain-commits mailing list
Toolchain-commits@blackfin.uclinux.org
http://blackfin.uclinux.org/mailman/listinfo/toolchain-commits


[toolchain-commits] [2020] trunk/uClibc/extra/Configs/Config.avr32: Add missing file.

2007-11-23 Thread bernds
Title: [2020] trunk/uClibc/extra/Configs/Config.avr32: Add missing file.







Revision 2020
Author bernds
Date 2007-11-23 13:24:09 -0600 (Fri, 23 Nov 2007)


Log Message
Add missing file.

Diffstat
 Config.avr32 |   31 +++
 1 files changed, 31 insertions(+)

Added Paths

trunk/uClibc/extra/Configs/Config.avr32




Diff

Added: trunk/uClibc/extra/Configs/Config.avr32 (0 => 2020)

--- trunk/uClibc/extra/Configs/Config.avr32	(rev 0)
+++ trunk/uClibc/extra/Configs/Config.avr32	2007-11-23 19:24:09 UTC (rev 2020)
@@ -0,0 +1,31 @@
+#
+# For a description of the syntax of this configuration file,
+# see extra/config/Kconfig-language.txt
+#
+
+config TARGET_ARCH
+   string
+   default avr32
+
+config FORCE_OPTIONS_FOR_ARCH
+   bool
+   default y
+   select ARCH_BIG_ENDIAN
+   select FORCE_SHAREABLE_TEXT_SEGMENTS
+
+config ARCH_CFLAGS
+   string
+
+choice
+   prompt Target CPU Type
+   default CONFIG_AVR32_AP7
+
+config CONFIG_AVR32_AP7
+   bool AVR32 AP7
+   select ARCH_HAS_MMU
+
+endchoice
+
+config LINKRELAX
+   bool Enable linker optimizations
+   default y






___
Toolchain-commits mailing list
Toolchain-commits@blackfin.uclinux.org
http://blackfin.uclinux.org/mailman/listinfo/toolchain-commits


[toolchain-commits] [2018] trunk/uClibc/upstream-revision: Update merge status.

2007-11-23 Thread bernds
Title: [2018] trunk/uClibc/upstream-revision: Update merge status.







Revision 2018
Author bernds
Date 2007-11-23 09:13:16 -0600 (Fri, 23 Nov 2007)


Log Message
Update merge status.

Diffstat
 upstream-revision |   20 +++-
 1 files changed, 19 insertions(+), 1 deletion(-)

Modified Paths

trunk/uClibc/upstream-revision




Diff

Modified: trunk/uClibc/upstream-revision (2017 => 2018)

--- trunk/uClibc/upstream-revision	2007-11-23 15:12:19 UTC (rev 2017)
+++ trunk/uClibc/upstream-revision	2007-11-23 15:13:16 UTC (rev 2018)
@@ -1 +1,19 @@
-18119
+Merged up to 20461, excluding the following revisions for now:
+
+19341
+19342
+19343
+19344
+19345
+19346
+19347
+19386
+19857
+19879
+19880
+20096
+20097
+20099
+
+The excluded ones are the uc_malloc work and patches depending on it; I'll
+get back to that soon.






___
Toolchain-commits mailing list
Toolchain-commits@blackfin.uclinux.org
http://blackfin.uclinux.org/mailman/listinfo/toolchain-commits


[toolchain-commits] [2016] trunk/uClibc/libc/sysdeps/linux/arm/bits/shm.h: Upstream r20456 | carmelo | 2007-11-20 08:43:19 +0100 (Tue, 20 Nov 2007) | 8 lines

2007-11-23 Thread bernds
Title: [2016] trunk/uClibc/libc/sysdeps/linux/arm/bits/shm.h:
  Upstream r20456 | carmelo | 2007-11-20 08:43:19 +0100 (Tue, 20 Nov 2007)
  | 8 lines







Revision 2016
Author bernds
Date 2007-11-23 09:11:46 -0600 (Fri, 23 Nov 2007)


Log Message
Upstream r20456 | carmelo | 2007-11-20 08:43:19 +0100 (Tue, 20 Nov 2007) | 8 lines

ARM SHMLBA = (4 * PAGE_SIZE). Currently in uclibc arm used shm.h from
common directory where SHMLBA = __getpagesize()

This patch fixes the issue.

Khem Raj
MontaVista Software Inc.

Diffstat
 shm.h |  103 ++
 1 files changed, 103 insertions(+)

Added Paths

trunk/uClibc/libc/sysdeps/linux/arm/bits/shm.h




Diff

Added: trunk/uClibc/libc/sysdeps/linux/arm/bits/shm.h (0 => 2016)

--- trunk/uClibc/libc/sysdeps/linux/arm/bits/shm.h	(rev 0)
+++ trunk/uClibc/libc/sysdeps/linux/arm/bits/shm.h	2007-11-23 15:11:46 UTC (rev 2016)
@@ -0,0 +1,103 @@
+/* Copyright (C) 1995,1996,1997,2000,2002,2004 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#ifndef _SYS_SHM_H
+# error Never include bits/shm.h directly; use sys/shm.h instead.
+#endif
+
+#include bits/types.h
+
+/* Permission flag for shmget.  */
+#define SHM_R		0400		/* or S_IRUGO from linux/stat.h */
+#define SHM_W		0200		/* or S_IWUGO from linux/stat.h */
+
+/* Flags for `shmat'.  */
+#define SHM_RDONLY	01		/* attach read-only else read-write */
+#define SHM_RND		02		/* round attach address to SHMLBA */
+#define SHM_REMAP	04		/* take-over region on attach */
+
+/* Commands for `shmctl'.  */
+#define SHM_LOCK	11		/* lock segment (root only) */
+#define SHM_UNLOCK	12		/* unlock segment (root only) */
+
+__BEGIN_DECLS
+
+/* Segment low boundary address multiple.  */
+#define SHMLBA		(__getpagesize ()  2)
+extern int __getpagesize (void) __THROW __attribute__ ((__const__));
+
+
+/* Type to count number of attaches.  */
+typedef unsigned long int shmatt_t;
+
+/* Data structure describing a set of semaphores.  */
+struct shmid_ds
+  {
+struct ipc_perm shm_perm;		/* operation permission struct */
+size_t shm_segsz;			/* size of segment in bytes */
+__time_t shm_atime;			/* time of last shmat() */
+unsigned long int __unused1;
+__time_t shm_dtime;			/* time of last shmdt() */
+unsigned long int __unused2;
+__time_t shm_ctime;			/* time of last change by shmctl() */
+unsigned long int __unused3;
+__pid_t shm_cpid;			/* pid of creator */
+__pid_t shm_lpid;			/* pid of last shmop */
+shmatt_t shm_nattch;		/* number of current attaches */
+unsigned long int __unused4;
+unsigned long int __unused5;
+  };
+
+#ifdef __USE_MISC
+
+/* ipcs ctl commands */
+# define SHM_STAT 	13
+# define SHM_INFO 	14
+
+/* shm_mode upper byte flags */
+# define SHM_DEST	01000	/* segment will be destroyed on last detach */
+# define SHM_LOCKED	02000   /* segment will not be swapped */
+# define SHM_HUGETLB	04000	/* segment is mapped via hugetlb */
+# define SHM_NORESERVE	01	/* don't check for reservations */
+
+struct	shminfo
+  {
+unsigned long int shmmax;
+unsigned long int shmmin;
+unsigned long int shmmni;
+unsigned long int shmseg;
+unsigned long int shmall;
+unsigned long int __unused1;
+unsigned long int __unused2;
+unsigned long int __unused3;
+unsigned long int __unused4;
+  };
+
+struct shm_info
+  {
+int used_ids;
+unsigned long int shm_tot;	/* total allocated shm */
+unsigned long int shm_rss;	/* total resident shm */
+unsigned long int shm_swp;	/* total swapped shm */
+unsigned long int swap_attempts;
+unsigned long int swap_successes;
+  };
+
+#endif /* __USE_MISC */
+
+__END_DECLS






___
Toolchain-commits mailing list
Toolchain-commits@blackfin.uclinux.org
http://blackfin.uclinux.org/mailman/listinfo/toolchain-commits


[toolchain-commits] [2012] trunk/uClibc/libc/misc/mntent/mntent.c: Upstream r20406 | kraj | 2007-11-10 07:42:45 +0100 (Sat, 10 Nov 2007) | 4 lines

2007-11-23 Thread bernds
Title: [2012] trunk/uClibc/libc/misc/mntent/mntent.c:
  Upstream r20406 | kraj | 2007-11-10 07:42:45 +0100 (Sat, 10 Nov 2007)
  | 4 lines







Revision 2012
Author bernds
Date 2007-11-23 08:03:06 -0600 (Fri, 23 Nov 2007)


Log Message
Upstream r20406 | kraj | 2007-11-10 07:42:45 +0100 (Sat, 10 Nov 2007) | 4 lines

Do not return error when fprintf returns 0 in addmntent().
fprintf is considered failing if the return is less than 0

Diffstat
 mntent.c |7 ++-
 1 files changed, 2 insertions(+), 5 deletions(-)

Modified Paths

trunk/uClibc/libc/misc/mntent/mntent.c




Diff

Modified: trunk/uClibc/libc/misc/mntent/mntent.c (2011 => 2012)

--- trunk/uClibc/libc/misc/mntent/mntent.c	2007-11-23 14:02:35 UTC (rev 2011)
+++ trunk/uClibc/libc/misc/mntent/mntent.c	2007-11-23 14:03:06 UTC (rev 2012)
@@ -99,11 +99,8 @@
 	if (fseek(filep, 0, SEEK_END)  0)
 		return 1;
 
-	if (fprintf (filep, %s %s %s %s %d %d\n, mnt-mnt_fsname, mnt-mnt_dir,
-		 mnt-mnt_type, mnt-mnt_opts, mnt-mnt_freq, mnt-mnt_passno)  1)
-		return 1;
-
-	return 0;
+	return (fprintf (filep, %s %s %s %s %d %d\n, mnt-mnt_fsname, mnt-mnt_dir,
+		 mnt-mnt_type, mnt-mnt_opts, mnt-mnt_freq, mnt-mnt_passno)  0 ? 1 : 0);
 }
 
 char *hasmntopt(const struct mntent *mnt, const char *opt)






___
Toolchain-commits mailing list
Toolchain-commits@blackfin.uclinux.org
http://blackfin.uclinux.org/mailman/listinfo/toolchain-commits


[toolchain-commits] [2004] trunk/uClibc/Rules.mak: Upstream r20264 | aldot | 2007-10-16 13:51: 51 +0200 (Tue, 16 Oct 2007) | 2 lines

2007-11-23 Thread bernds
Title: [2004] trunk/uClibc/Rules.mak: Upstream r20264 | aldot | 2007-10-16 13:51:
 51 +0200 (Tue, 16 Oct 2007) | 2 lines







Revision 2004
Author bernds
Date 2007-11-23 06:05:27 -0600 (Fri, 23 Nov 2007)


Log Message
Upstream r20264 | aldot | 2007-10-16 13:51:51 +0200 (Tue, 16 Oct 2007) | 2 lines

- move UCLIBC_EXTRA_LDFLAGS below pinning LDFLAGS

Diffstat
 Rules.mak |8 
 1 files changed, 4 insertions(+), 4 deletions(-)

Modified Paths

trunk/uClibc/Rules.mak




Diff

Modified: trunk/uClibc/Rules.mak (2003 => 2004)

--- trunk/uClibc/Rules.mak	2007-11-23 12:04:48 UTC (rev 2003)
+++ trunk/uClibc/Rules.mak	2007-11-23 12:05:27 UTC (rev 2004)
@@ -398,10 +398,6 @@
 CFLAGS += $(subst ,, $(UCLIBC_EXTRA_CFLAGS))
 endif
 
-ifneq ($(strip $(UCLIBC_EXTRA_LDFLAGS)),)
-LDFLAGS += $(subst ,, $(UCLIBC_EXTRA_LDFLAGS))
-endif
-
 LDADD_LIBFLOAT=
 ifeq ($(UCLIBC_HAS_SOFT_FLOAT),y)
 # If -msoft-float isn't supported, we want an error anyway.
@@ -467,6 +463,10 @@
 DOMULTI:=n
 endif
 
+ifneq ($(strip $(UCLIBC_EXTRA_LDFLAGS)),)
+LDFLAGS += $(subst ,, $(UCLIBC_EXTRA_LDFLAGS))
+endif
+
 ifeq ($(UCLIBC_HAS_THREADS),y)
 ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
 	PTNAME := nptl






___
Toolchain-commits mailing list
Toolchain-commits@blackfin.uclinux.org
http://blackfin.uclinux.org/mailman/listinfo/toolchain-commits