mirror of
https://github.com/devkitPro/buildscripts.git
synced 2026-08-13 13:06:34 -05:00
updated to newlib 1.13.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#---------------------------------------------------------------------------------
|
||||
# Build scripts for devkitARM/devkitPPC release 11
|
||||
# Build scripts for devkitARM/devkitPPC release 12
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
BINUTILS_VER=2.15
|
||||
GCC_VER=3.4.3
|
||||
NEWLIB_VER=1.12.0
|
||||
NEWLIB_VER=1.13.0
|
||||
LIBOGC_VER=20050306
|
||||
|
||||
BINUTILS="binutils-$BINUTILS_VER.tar.bz2"
|
||||
@@ -36,7 +36,7 @@ do
|
||||
echo
|
||||
echo "This script will build and install your devkit. Please select the one you require"
|
||||
echo
|
||||
echo "1: build devkitARM (gba gp32)"
|
||||
echo "1: build devkitARM (gba gp32 ds)"
|
||||
echo "2: build devkitPPC (gamecube)"
|
||||
read VERSION
|
||||
|
||||
@@ -245,7 +245,7 @@ fi
|
||||
#---------------------------------------------------------------------------------
|
||||
patch -p1 -d $BINUTILS_SRCDIR -i $(pwd)/patches/devkit-binutils-2.15.patch
|
||||
patch -p1 -d $GCC_SRCDIR -i $(pwd)/patches/devkit-gcc-3.4.3.patch
|
||||
patch -p1 -d $NEWLIB_SRCDIR -i $(pwd)/patches/devkit-newlib-1.12.0.patch
|
||||
patch -p1 -d $NEWLIB_SRCDIR -i $(pwd)/patches/devkit-newlib-1.13.0.patch
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
@@ -21,7 +21,9 @@ fi
|
||||
|
||||
g++ tools/general/bmp2bin.cpp -o $prefix/bin/bmp2bin$exeext -static -O2 -s -D__LITTLE_ENDIAN__
|
||||
gcc tools/gba/gbafix.c -o $prefix/bin/gbafix$exeext -static -O2 -s
|
||||
g++ -O2 -s -o $prefix/bin/ndstool$exeext tools/nds/ndstool.cpp -lelf -L /usr/local/lib -I /usr/local/include
|
||||
|
||||
$MAKE -C tools/nds/ndstool
|
||||
cp tools/nds/ndstool/ndstool$exeext $prefix/bin/ndstool$exeext
|
||||
|
||||
cp tools/general/alignbin $prefix/bin/alignbin
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
diff -Nbaur newlib-1.12.0/config.sub newlib-1.12.0-new/config.sub
|
||||
--- newlib-1.12.0/config.sub Fri Aug 8 11:14:48 2003
|
||||
+++ newlib-1.12.0-new/config.sub Mon Feb 21 14:59:53 2005
|
||||
@@ -218,6 +218,9 @@
|
||||
diff -NBaur newlib-1.13.0/config.sub newlib-1.13.0-new/config.sub
|
||||
--- newlib-1.13.0/config.sub Tue Nov 16 01:18:39 2004
|
||||
+++ newlib-1.13.0-new/config.sub Sun Feb 27 12:17:44 2005
|
||||
@@ -219,6 +219,9 @@
|
||||
basic_machine=m68k-atari
|
||||
os=-mint
|
||||
;;
|
||||
@@ -11,10 +11,10 @@ diff -Nbaur newlib-1.12.0/config.sub newlib-1.12.0-new/config.sub
|
||||
esac
|
||||
|
||||
# Decode aliases for certain CPU-COMPANY combinations.
|
||||
diff -Nbaur newlib-1.12.0/newlib/configure.host newlib-1.12.0-new/newlib/configure.host
|
||||
--- newlib-1.12.0/newlib/configure.host Mon Feb 2 16:59:51 2004
|
||||
+++ newlib-1.12.0-new/newlib/configure.host Mon Feb 21 14:59:53 2005
|
||||
@@ -378,6 +378,9 @@
|
||||
diff -NBaur newlib-1.13.0/newlib/configure.host newlib-1.13.0-new/newlib/configure.host
|
||||
--- newlib-1.13.0/newlib/configure.host Tue Oct 5 20:44:24 2004
|
||||
+++ newlib-1.13.0-new/newlib/configure.host Sun Feb 27 12:17:44 2005
|
||||
@@ -389,6 +389,9 @@
|
||||
powerpcle-*-pe)
|
||||
posix_dir=posix
|
||||
;;
|
||||
@@ -24,9 +24,9 @@ diff -Nbaur newlib-1.12.0/newlib/configure.host newlib-1.12.0-new/newlib/configu
|
||||
sh*-*)
|
||||
sys_dir=sh
|
||||
;;
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/arm/Makefile.in newlib-1.12.0-new/newlib/libc/sys/arm/Makefile.in
|
||||
--- newlib-1.12.0/newlib/libc/sys/arm/Makefile.in Fri Jan 23 21:37:37 2004
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/arm/Makefile.in Mon Feb 21 14:59:53 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/arm/Makefile.in newlib-1.13.0-new/newlib/libc/sys/arm/Makefile.in
|
||||
--- newlib-1.13.0/newlib/libc/sys/arm/Makefile.in Wed Jun 9 20:05:09 2004
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/arm/Makefile.in Sun Feb 27 12:17:44 2005
|
||||
@@ -88,7 +88,7 @@
|
||||
INCLUDES = $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(TARGET_CFLAGS)
|
||||
|
||||
@@ -35,16 +35,16 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/arm/Makefile.in newlib-1.12.0-new/newl
|
||||
+@MAY_SUPPLY_SYSCALLS_TRUE@extra_objs = syscalls.o malloc_vars.o
|
||||
@MAY_SUPPLY_SYSCALLS_FALSE@extra_objs =
|
||||
|
||||
lib_a_SOURCES = access.c libcfunc.c trap.S setjmp.S
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/arm/malloc_vars.c newlib-1.12.0-new/newlib/libc/sys/arm/malloc_vars.c
|
||||
--- newlib-1.12.0/newlib/libc/sys/arm/malloc_vars.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/arm/malloc_vars.c Mon Feb 21 14:59:53 2005
|
||||
lib_a_SOURCES = libcfunc.c trap.S
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/arm/malloc_vars.c newlib-1.13.0-new/newlib/libc/sys/arm/malloc_vars.c
|
||||
--- newlib-1.13.0/newlib/libc/sys/arm/malloc_vars.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/arm/malloc_vars.c Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,2 @@
|
||||
+char *fake_heap_end = (char*)0;
|
||||
+char *fake_heap_start = (char*)0;
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/arm/syscalls.c newlib-1.12.0-new/newlib/libc/sys/arm/syscalls.c
|
||||
--- newlib-1.12.0/newlib/libc/sys/arm/syscalls.c Tue Jan 6 19:27:21 2004
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/arm/syscalls.c Mon Feb 21 14:59:53 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/arm/syscalls.c newlib-1.13.0-new/newlib/libc/sys/arm/syscalls.c
|
||||
--- newlib-1.13.0/newlib/libc/sys/arm/syscalls.c Tue Jan 6 19:27:21 2004
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/arm/syscalls.c Sun Feb 27 12:17:44 2005
|
||||
@@ -474,19 +474,41 @@
|
||||
n = n;
|
||||
}
|
||||
@@ -88,9 +88,9 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/arm/syscalls.c newlib-1.12.0-new/newli
|
||||
{
|
||||
/* Some of the libstdc++-v3 tests rely upon detecting
|
||||
out of memory errors, so do not abort here. */
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/Makefile.am newlib-1.12.0-new/newlib/libc/sys/ppcgekko/Makefile.am
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/Makefile.am Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/Makefile.am Mon Feb 21 14:59:53 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/Makefile.am newlib-1.13.0-new/newlib/libc/sys/ppcgekko/Makefile.am
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/Makefile.am Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/Makefile.am Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,19 @@
|
||||
+## Process this file with automake to generate Makefile.in
|
||||
+
|
||||
@@ -111,9 +111,9 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/Makefile.am newlib-1.12.0-new
|
||||
+
|
||||
+ACLOCAL_AMFLAGS = -I ../../..
|
||||
+CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/Makefile.in newlib-1.12.0-new/newlib/libc/sys/ppcgekko/Makefile.in
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/Makefile.in Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/Makefile.in Mon Feb 21 14:59:53 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/Makefile.in newlib-1.13.0-new/newlib/libc/sys/ppcgekko/Makefile.in
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/Makefile.in Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/Makefile.in Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,341 @@
|
||||
+# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||
+
|
||||
@@ -456,9 +456,9 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/Makefile.in newlib-1.12.0-new
|
||||
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
+# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
+.NOEXPORT:
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/aclocal.m4 newlib-1.12.0-new/newlib/libc/sys/ppcgekko/aclocal.m4
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/aclocal.m4 Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/aclocal.m4 Mon Feb 21 14:59:53 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/aclocal.m4 newlib-1.13.0-new/newlib/libc/sys/ppcgekko/aclocal.m4
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/aclocal.m4 Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/aclocal.m4 Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,382 @@
|
||||
+dnl aclocal.m4 generated automatically by aclocal 1.4-p6
|
||||
+
|
||||
@@ -595,7 +595,7 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/aclocal.m4 newlib-1.12.0-new/
|
||||
+
|
||||
+AC_CANONICAL_SYSTEM
|
||||
+
|
||||
+AM_INIT_AUTOMAKE(newlib, 1.12.0)
|
||||
+AM_INIT_AUTOMAKE(newlib, 1.13.0)
|
||||
+
|
||||
+# FIXME: We temporarily define our own version of AC_PROG_CC. This is
|
||||
+# copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
|
||||
@@ -842,9 +842,9 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/aclocal.m4 newlib-1.12.0-new/
|
||||
+]
|
||||
+)
|
||||
+
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/configure newlib-1.12.0-new/newlib/libc/sys/ppcgekko/configure
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/configure Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/configure Mon Feb 21 14:59:53 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/configure newlib-1.13.0-new/newlib/libc/sys/ppcgekko/configure
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/configure Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/configure Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,1906 @@
|
||||
+#! /bin/sh
|
||||
+
|
||||
@@ -1871,7 +1871,7 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/configure newlib-1.12.0-new/n
|
||||
+
|
||||
+PACKAGE=newlib
|
||||
+
|
||||
+VERSION=1.12.0
|
||||
+VERSION=1.13.0
|
||||
+
|
||||
+if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
||||
+ { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
|
||||
@@ -2752,9 +2752,9 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/configure newlib-1.12.0-new/n
|
||||
+rm -fr confdefs* $ac_clean_files
|
||||
+test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
|
||||
+
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/configure.in newlib-1.12.0-new/newlib/libc/sys/ppcgekko/configure.in
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/configure.in Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/configure.in Mon Feb 21 14:59:53 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/configure.in newlib-1.13.0-new/newlib/libc/sys/ppcgekko/configure.in
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/configure.in Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/configure.in Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,12 @@
|
||||
+dnl This is the newlib/libc/sys/ppcgekko configure.in file.
|
||||
+dnl Process this file with autoconf to produce a configure script.
|
||||
@@ -2768,23 +2768,23 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/configure.in newlib-1.12.0-ne
|
||||
+NEWLIB_CONFIGURE(../../..)
|
||||
+
|
||||
+AC_OUTPUT(Makefile)
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/crt0.c newlib-1.12.0-new/newlib/libc/sys/ppcgekko/crt0.c
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/crt0.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/crt0.c Mon Feb 21 14:59:53 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/crt0.c newlib-1.13.0-new/newlib/libc/sys/ppcgekko/crt0.c
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/crt0.c Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/crt0.c Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,4 @@
|
||||
+/* I have a copy of something that would serve as a NetWare crt0.o,
|
||||
+ but it is copyright by Novell. */
|
||||
+
|
||||
+int _dummy_crt0 = 1;
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/include/newlib.h newlib-1.12.0-new/newlib/libc/sys/ppcgekko/include/newlib.h
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/include/newlib.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/include/newlib.h Mon Feb 21 14:59:53 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/include/newlib.h newlib-1.13.0-new/newlib/libc/sys/ppcgekko/include/newlib.h
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/include/newlib.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/include/newlib.h Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,2 @@
|
||||
+/* dummy file for external tools to use. Real file is created by
|
||||
+ newlib configuration. */
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/machine/malloc.h newlib-1.12.0-new/newlib/libc/sys/ppcgekko/machine/malloc.h
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/machine/malloc.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/machine/malloc.h Mon Feb 21 14:59:54 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/machine/malloc.h newlib-1.13.0-new/newlib/libc/sys/ppcgekko/machine/malloc.h
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/machine/malloc.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/machine/malloc.h Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,8 @@
|
||||
+#ifndef _MACHMALLOC_H_
|
||||
+#define _MACHMALLOC_H_
|
||||
@@ -2794,9 +2794,9 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/machine/malloc.h newlib-1.12.
|
||||
+#endif /* _MACHMALLOC_H_ */
|
||||
+
|
||||
+
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/machine/stdlib.h newlib-1.12.0-new/newlib/libc/sys/ppcgekko/machine/stdlib.h
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/machine/stdlib.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/machine/stdlib.h Mon Feb 21 14:59:54 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/machine/stdlib.h newlib-1.13.0-new/newlib/libc/sys/ppcgekko/machine/stdlib.h
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/machine/stdlib.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/machine/stdlib.h Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,8 @@
|
||||
+#ifndef _MACHSTDLIB_H_
|
||||
+#define _MACHSTDLIB_H_
|
||||
@@ -2806,55 +2806,66 @@ diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/machine/stdlib.h newlib-1.12.
|
||||
+#endif /* _MACHSTDLIB_H_ */
|
||||
+
|
||||
+
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/sys/lock.h newlib-1.12.0-new/newlib/libc/sys/ppcgekko/sys/lock.h
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/sys/lock.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/sys/lock.h Mon Feb 21 13:03:00 2005
|
||||
@@ -0,0 +1,42 @@
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/sys/lock.h newlib-1.13.0-new/newlib/libc/sys/ppcgekko/sys/lock.h
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/sys/lock.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/sys/lock.h Thu Apr 14 09:04:31 2005
|
||||
@@ -0,0 +1,53 @@
|
||||
+#ifndef __SYS_LOCK_H__
|
||||
+#define __SYS_LOCK_H__
|
||||
+
|
||||
+/* lock routines for ogc kernel aps */
|
||||
+/* dummy lock routines for single-threaded aps */
|
||||
+
|
||||
+typedef int _LOCK_T;
|
||||
+typedef int _LOCK_RECURSIVE_T;
|
||||
+
|
||||
+#define __LOCK_INIT(CLASS,NAME) \
|
||||
+ CLASS _LOCK_T NAME = 0; \
|
||||
+ if(!(NAME)) __libc_lock_init(&(NAME),0)
|
||||
+#define __LOCK_INIT_RECURSIVE(CLASS,NAME) \
|
||||
+ CLASS _LOCK_RECURSIVE_T NAME = 0; \
|
||||
+ if(!(NAME)) __libc_lock_init(&(NAME),1)
|
||||
+#define __LOCK_INIT(CLASS,NAME) CLASS _LOCK_T NAME = 0
|
||||
+#define __LOCK_INIT_RECURSIVE(CLASS,NAME) CLASS _LOCK_RECURSIVE_T NAME = 0
|
||||
+
|
||||
+#define __lock_init(NAME) \
|
||||
+ __libc_lock_init(&(NAME),0)
|
||||
+
|
||||
+#define __lock_init_recursive(NAME) \
|
||||
+ __libc_lock_init(&(NAME),1)
|
||||
+
|
||||
+#define __lock_close(NAME) \
|
||||
+ __libc_lock_close(&(NAME))
|
||||
+
|
||||
+#define __lock_close_recursive(NAME) \
|
||||
+ __libc_lock_close(&(NAME))
|
||||
+#define __lock_acquire(NAME) \
|
||||
+
|
||||
+#define __lock_acquire(NAME) \
|
||||
+ if(!(NAME)) __libc_lock_init(&(NAME),0); \
|
||||
+ __libc_lock_acquire(&(NAME))
|
||||
+#define __lock_acquire_recursive(NAME) \
|
||||
+
|
||||
+#define __lock_acquire_recursive(NAME) \
|
||||
+ if(!(NAME)) __libc_lock_init(&(NAME),1); \
|
||||
+ __libc_lock_acquire(&(NAME))
|
||||
+#define __lock_try_acquire(NAME) \
|
||||
+
|
||||
+#define __lock_try_acquire(NAME) \
|
||||
+ if(!(NAME)) __libc_lock_init(&(NAME),0); \
|
||||
+ __libc_lock_try_acquire(&(NAME))
|
||||
+#define __lock_try_acquire_recursive(NAME) \
|
||||
+
|
||||
+#define __lock_try_acquire_recursive(NAME) \
|
||||
+ if(!(NAME)) __libc_lock_init(&(NAME),1); \
|
||||
+ __libc_lock_try_acquire(&(NAME))
|
||||
+
|
||||
+#define __lock_release(NAME) \
|
||||
+ __libc_lock_release(&(NAME))
|
||||
+
|
||||
+#define __lock_release_recursive(NAME) \
|
||||
+ __libc_lock_release(&(NAME))
|
||||
+
|
||||
+extern int __libc_lock_init(int *lock,int recursive);
|
||||
+extern int __libc_lock_close(int *lock);
|
||||
+extern int __libc_lock_acquire(int *lock);
|
||||
+extern int __libc_lock_try_acquire(int *lock);
|
||||
+extern int __libc_lock_release(int *lock);
|
||||
+
|
||||
+extern int __libc_lock_init(int*,int);
|
||||
+extern int __libc_lock_close(int*);
|
||||
+extern int __libc_lock_acquire(int*);
|
||||
+extern int __libc_lock_try_acquire(int*);
|
||||
+extern int __libc_lock_release(int*);
|
||||
+
|
||||
+#endif /* __SYS_LOCK_H__ */
|
||||
diff -Nbaur newlib-1.12.0/newlib/libc/sys/ppcgekko/sys/stdio.h newlib-1.12.0-new/newlib/libc/sys/ppcgekko/sys/stdio.h
|
||||
--- newlib-1.12.0/newlib/libc/sys/ppcgekko/sys/stdio.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.12.0-new/newlib/libc/sys/ppcgekko/sys/stdio.h Mon Feb 21 13:03:00 2005
|
||||
diff -NBaur newlib-1.13.0/newlib/libc/sys/ppcgekko/sys/stdio.h newlib-1.13.0-new/newlib/libc/sys/ppcgekko/sys/stdio.h
|
||||
--- newlib-1.13.0/newlib/libc/sys/ppcgekko/sys/stdio.h Thu Jan 1 00:00:00 1970
|
||||
+++ newlib-1.13.0-new/newlib/libc/sys/ppcgekko/sys/stdio.h Sun Feb 27 12:17:44 2005
|
||||
@@ -0,0 +1,25 @@
|
||||
+#ifndef _NEWLIB_STDIO_H
|
||||
+#define _NEWLIB_STDIO_H
|
||||
Reference in New Issue
Block a user