# HG changeset patch # User "Yann E. MORIN" # Date 1213621493 0 # Node ID ef7dd7893e548d749ce3bef695255dc084101182 # Parent 30fbb26a83b48a090617dd45c213291684148839 New patch to make glibces build for Alpha with latest linux kernel headers. /trunk/patches/glibc/2.5.1/180-alpha-asm_page.patch | 26 26 0 0 ++++++++++++++++++++++++++ /trunk/patches/glibc/2.5/180-alpha-asm_page.patch | 26 26 0 0 ++++++++++++++++++++++++++ /trunk/patches/glibc/2.6.1/180-alpha-asm_page.patch | 26 26 0 0 ++++++++++++++++++++++++++ /trunk/patches/glibc/2.6/180-alpha-asm_page.patch | 26 26 0 0 ++++++++++++++++++++++++++ /trunk/patches/glibc/2.3.6/260-alpha-asm_page.patch | 26 26 0 0 ++++++++++++++++++++++++++ /trunk/patches/glibc/2.7/180-alpha-asm_page.patch | 26 26 0 0 ++++++++++++++++++++++++++ 6 files changed, 156 insertions(+) diff -r 30fbb26a83b4 -r ef7dd7893e54 patches/glibc/2.3.6/260-alpha-asm_page.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/glibc/2.3.6/260-alpha-asm_page.patch Mon Jun 16 13:04:53 2008 +0000 @@ -0,0 +1,26 @@ +2008-06-07 Mike Frysinger + + * sysdeps/unix/sysv/linux/alpha/sys/user.h: Copy page.h definitions + from the kernel header to sys/user.h and remove the #include of + sys/user.h. + +--- a/sysdeps/unix/sysv/linux/alpha/sys/user.h ++++ b/sysdeps/unix/sysv/linux/alpha/sys/user.h +@@ -23,7 +23,6 @@ + only. Don't read too much into it. Don't use it for anything other + than gdb/strace unless you know what you are doing. */ + +-#include + #include + + struct user +@@ -41,6 +40,9 @@ struct user + char u_comm[32]; /* user command name */ + }; + ++#define PAGE_SHIFT 13 ++#define PAGE_SIZE (1 << PAGE_SHIFT) ++#define PAGE_MASK (~(PAGE_SIZE-1)) + #define NBPG PAGE_SIZE + #define UPAGES 1 + #define HOST_TEXT_START_ADDR (u.start_code) diff -r 30fbb26a83b4 -r ef7dd7893e54 patches/glibc/2.5.1/180-alpha-asm_page.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/glibc/2.5.1/180-alpha-asm_page.patch Mon Jun 16 13:04:53 2008 +0000 @@ -0,0 +1,26 @@ +2008-06-07 Mike Frysinger + + * sysdeps/unix/sysv/linux/alpha/sys/user.h: Copy page.h definitions + from the kernel header to sys/user.h and remove the #include of + sys/user.h. + +--- a/sysdeps/unix/sysv/linux/alpha/sys/user.h ++++ b/sysdeps/unix/sysv/linux/alpha/sys/user.h +@@ -23,7 +23,6 @@ + only. Don't read too much into it. Don't use it for anything other + than gdb/strace unless you know what you are doing. */ + +-#include + #include + + struct user +@@ -41,6 +40,9 @@ struct user + char u_comm[32]; /* user command name */ + }; + ++#define PAGE_SHIFT 13 ++#define PAGE_SIZE (1 << PAGE_SHIFT) ++#define PAGE_MASK (~(PAGE_SIZE-1)) + #define NBPG PAGE_SIZE + #define UPAGES 1 + #define HOST_TEXT_START_ADDR (u.start_code) diff -r 30fbb26a83b4 -r ef7dd7893e54 patches/glibc/2.5/180-alpha-asm_page.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/glibc/2.5/180-alpha-asm_page.patch Mon Jun 16 13:04:53 2008 +0000 @@ -0,0 +1,26 @@ +2008-06-07 Mike Frysinger + + * sysdeps/unix/sysv/linux/alpha/sys/user.h: Copy page.h definitions + from the kernel header to sys/user.h and remove the #include of + sys/user.h. + +--- a/sysdeps/unix/sysv/linux/alpha/sys/user.h ++++ b/sysdeps/unix/sysv/linux/alpha/sys/user.h +@@ -23,7 +23,6 @@ + only. Don't read too much into it. Don't use it for anything other + than gdb/strace unless you know what you are doing. */ + +-#include + #include + + struct user +@@ -41,6 +40,9 @@ struct user + char u_comm[32]; /* user command name */ + }; + ++#define PAGE_SHIFT 13 ++#define PAGE_SIZE (1 << PAGE_SHIFT) ++#define PAGE_MASK (~(PAGE_SIZE-1)) + #define NBPG PAGE_SIZE + #define UPAGES 1 + #define HOST_TEXT_START_ADDR (u.start_code) diff -r 30fbb26a83b4 -r ef7dd7893e54 patches/glibc/2.6.1/180-alpha-asm_page.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/glibc/2.6.1/180-alpha-asm_page.patch Mon Jun 16 13:04:53 2008 +0000 @@ -0,0 +1,26 @@ +2008-06-07 Mike Frysinger + + * sysdeps/unix/sysv/linux/alpha/sys/user.h: Copy page.h definitions + from the kernel header to sys/user.h and remove the #include of + sys/user.h. + +--- a/sysdeps/unix/sysv/linux/alpha/sys/user.h ++++ b/sysdeps/unix/sysv/linux/alpha/sys/user.h +@@ -23,7 +23,6 @@ + only. Don't read too much into it. Don't use it for anything other + than gdb/strace unless you know what you are doing. */ + +-#include + #include + + struct user +@@ -41,6 +40,9 @@ struct user + char u_comm[32]; /* user command name */ + }; + ++#define PAGE_SHIFT 13 ++#define PAGE_SIZE (1 << PAGE_SHIFT) ++#define PAGE_MASK (~(PAGE_SIZE-1)) + #define NBPG PAGE_SIZE + #define UPAGES 1 + #define HOST_TEXT_START_ADDR (u.start_code) diff -r 30fbb26a83b4 -r ef7dd7893e54 patches/glibc/2.6/180-alpha-asm_page.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/glibc/2.6/180-alpha-asm_page.patch Mon Jun 16 13:04:53 2008 +0000 @@ -0,0 +1,26 @@ +2008-06-07 Mike Frysinger + + * sysdeps/unix/sysv/linux/alpha/sys/user.h: Copy page.h definitions + from the kernel header to sys/user.h and remove the #include of + sys/user.h. + +--- a/sysdeps/unix/sysv/linux/alpha/sys/user.h ++++ b/sysdeps/unix/sysv/linux/alpha/sys/user.h +@@ -23,7 +23,6 @@ + only. Don't read too much into it. Don't use it for anything other + than gdb/strace unless you know what you are doing. */ + +-#include + #include + + struct user +@@ -41,6 +40,9 @@ struct user + char u_comm[32]; /* user command name */ + }; + ++#define PAGE_SHIFT 13 ++#define PAGE_SIZE (1 << PAGE_SHIFT) ++#define PAGE_MASK (~(PAGE_SIZE-1)) + #define NBPG PAGE_SIZE + #define UPAGES 1 + #define HOST_TEXT_START_ADDR (u.start_code) diff -r 30fbb26a83b4 -r ef7dd7893e54 patches/glibc/2.7/180-alpha-asm_page.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/glibc/2.7/180-alpha-asm_page.patch Mon Jun 16 13:04:53 2008 +0000 @@ -0,0 +1,26 @@ +2008-06-07 Mike Frysinger + + * sysdeps/unix/sysv/linux/alpha/sys/user.h: Copy page.h definitions + from the kernel header to sys/user.h and remove the #include of + sys/user.h. + +--- a/sysdeps/unix/sysv/linux/alpha/sys/user.h ++++ b/sysdeps/unix/sysv/linux/alpha/sys/user.h +@@ -23,7 +23,6 @@ + only. Don't read too much into it. Don't use it for anything other + than gdb/strace unless you know what you are doing. */ + +-#include + #include + + struct user +@@ -41,6 +40,9 @@ struct user + char u_comm[32]; /* user command name */ + }; + ++#define PAGE_SHIFT 13 ++#define PAGE_SIZE (1 << PAGE_SHIFT) ++#define PAGE_MASK (~(PAGE_SIZE-1)) + #define NBPG PAGE_SIZE + #define UPAGES 1 + #define HOST_TEXT_START_ADDR (u.start_code)