1.1 --- a/config/libc/eglibc.in Sun Aug 02 23:33:36 2009 +0200
1.2 +++ b/config/libc/eglibc.in Sun Aug 02 23:33:37 2009 +0200
1.3 @@ -36,6 +36,10 @@
1.4 bool
1.5 prompt "2_9"
1.6
1.7 +config LIBC_V_2_10
1.8 + bool
1.9 + prompt "2_10"
1.10 +
1.11 # CT_INSERT_VERSION_ABOVE
1.12 # Don't remove above line!
1.13
1.14 @@ -55,6 +59,7 @@
1.15 default "2_7" if EGLIBC_V_2_7
1.16 default "2_8" if EGLIBC_V_2_8
1.17 default "2_9" if EGLIBC_V_2_9
1.18 + default "2_10" if LIBC_V_2_10
1.19 # CT_INSERT_VERSION_STRING_ABOVE
1.20 # Don't remove above line!
1.21
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/patches/eglibc/2_10/100-powerpc-8xx-CPU15-errata.patch Sun Aug 02 23:33:37 2009 +0200
2.3 @@ -0,0 +1,49 @@
2.4 +diff -ru eglibc-2_9_orig/sysdeps/powerpc/powerpc32/memset.S eglibc-2_9/sysdeps/powerpc/powerpc32/memset.S
2.5 +--- eglibc-2_9_orig/sysdeps/powerpc/powerpc32/memset.S 2007-04-13 08:35:45.000000000 -0700
2.6 ++++ eglibc-2_9/sysdeps/powerpc/powerpc32/memset.S 2009-05-06 16:52:04.000000000 -0700
2.7 +@@ -112,11 +112,13 @@
2.8 + clrrwi. rALIGN, rLEN, 5
2.9 + mtcrf 0x01, rLEN /* 40th instruction from .align */
2.10 +
2.11 ++#ifndef BROKEN_PPC_8xx_CPU15
2.12 + /* Check if we can use the special case for clearing memory using dcbz.
2.13 + This requires that we know the correct cache line size for this
2.14 + processor. Getting the __cache_line_size may require establishing GOT
2.15 + addressability, so branch out of line to set this up. */
2.16 + beq cr1, L(checklinesize)
2.17 ++#endif
2.18 +
2.19 + /* Store blocks of 32-bytes (256-bits) starting on a 32-byte boundary.
2.20 + Can't assume that rCHR is zero or that the cache line size is either
2.21 +@@ -158,6 +160,7 @@
2.22 + add rMEMP, rMEMP, rALIGN
2.23 + b L(medium_tail2) /* 72nd instruction from .align */
2.24 +
2.25 ++#ifndef BROKEN_PPC_8xx_CPU15
2.26 + .align 5
2.27 + nop
2.28 + /* Clear cache lines of memory in 128-byte chunks.
2.29 +@@ -191,6 +194,7 @@
2.30 + bdnz L(zloop)
2.31 + beqlr cr5
2.32 + b L(medium_tail2)
2.33 ++#endif /* ! BROKEN_PPC_8xx_CPU15 */
2.34 +
2.35 + .align 5
2.36 + L(small):
2.37 +@@ -248,6 +252,7 @@
2.38 + stw rCHR, -8(rMEMP)
2.39 + blr
2.40 +
2.41 ++#ifndef BROKEN_PPC_8xx_CPU15
2.42 + L(checklinesize):
2.43 + #ifdef SHARED
2.44 + mflr rTMP
2.45 +@@ -329,6 +334,7 @@
2.46 + L(handletail32):
2.47 + clrrwi. rALIGN, rLEN, 5
2.48 + b L(nondcbz)
2.49 ++#endif /* ! BROKEN_PPC_8xx_CPU15 */
2.50 +
2.51 + END (BP_SYM (memset))
2.52 + libc_hidden_builtin_def (memset)