diff options
author | Ralph Hempel <ralph.hempel@lantiq.com> | 2008-01-27 17:59:20 +0000 |
---|---|---|
committer | Ralph Hempel <ralph.hempel@lantiq.com> | 2008-01-27 17:59:20 +0000 |
commit | 3dfc679bb985d2070b0e645393d6e0f5fd4760e6 (patch) | |
tree | 78854962c31c8caf594c6dd432abdca6983f3253 /toolchain/uClibc/patches/0.9.28.2/230-cris-pagesize.patch | |
parent | 214601c01245b4e2e1c017043d077b58ace54b08 (diff) | |
download | master-31e0f0ae-3dfc679bb985d2070b0e645393d6e0f5fd4760e6.tar.gz master-31e0f0ae-3dfc679bb985d2070b0e645393d6e0f5fd4760e6.tar.bz2 master-31e0f0ae-3dfc679bb985d2070b0e645393d6e0f5fd4760e6.zip |
add uClibc version 0.9.28.2, 0.9.28.3 and snapshots for development purpose (and already deployed evaluation boards) the version 0.9.29 is still the default version
SVN-Revision: 10282
Diffstat (limited to 'toolchain/uClibc/patches/0.9.28.2/230-cris-pagesize.patch')
-rw-r--r-- | toolchain/uClibc/patches/0.9.28.2/230-cris-pagesize.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches/0.9.28.2/230-cris-pagesize.patch b/toolchain/uClibc/patches/0.9.28.2/230-cris-pagesize.patch new file mode 100644 index 0000000000..419617b44f --- /dev/null +++ b/toolchain/uClibc/patches/0.9.28.2/230-cris-pagesize.patch @@ -0,0 +1,24 @@ +diff -urN uClibc-0.9.28.2.orig/ldso/include/dl-syscall.h uClibc-0.9.28.2/ldso/include/dl-syscall.h +--- uClibc-0.9.28.2.orig/ldso/include/dl-syscall.h 2007-05-22 20:39:28.000000000 +0200 ++++ uClibc-0.9.28.2/ldso/include/dl-syscall.h 2007-05-22 20:41:30.000000000 +0200 +@@ -155,8 +155,9 @@ + static inline void * _dl_mmap(void * addr, unsigned long size, int prot, + int flags, int fd, unsigned long offset) + { +- if (offset & ((1 << MMAP2_PAGE_SHIFT) - 1)) ++ if (offset & ((1 << MMAP2_PAGE_SHIFT) - 1)){ + return MAP_FAILED; ++ } + return __syscall_mmap2(addr, size, prot, flags, + fd, (off_t) (offset >> MMAP2_PAGE_SHIFT)); + } +diff -urN uClibc-0.9.28.2.orig/libc/sysdeps/linux/cris/bits/uClibc_page.h uClibc-0.9.28.2/libc/sysdeps/linux/cris/bits/uClibc_page.h +--- uClibc-0.9.28.2.orig/libc/sysdeps/linux/cris/bits/uClibc_page.h 2007-05-22 20:39:28.000000000 +0200 ++++ uClibc-0.9.28.2/libc/sysdeps/linux/cris/bits/uClibc_page.h 2007-05-22 20:42:25.000000000 +0200 +@@ -24,5 +24,5 @@ + #define PAGE_SHIFT 13 + #define PAGE_SIZE (1UL << PAGE_SHIFT) + #define PAGE_MASK (~(PAGE_SIZE-1)) +- ++#define MMAP2_PAGE_SHIFT PAGE_SHIFT + #endif /* _UCLIBC_PAGE_H */ |