aboutsummaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-06-02 19:45:04 +0000
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>2008-06-02 19:45:04 +0000
commitfe81cb1c435e59c2f2a1d0ea210b24230cc8f22b (patch)
treeb5e1c02f152e49917e39535c8fd23b7979b5b531 /patches
parentf93f7c8dbe6b7bfd778f96f73f4f6e5c5e107254 (diff)
Add the minimal set of kernel patches need to for the SPL. Hopefully
even these will not be needed over the next few weeks. git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@121 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'patches')
-rw-r--r--patches/16kstack-x86_64.patch13
-rw-r--r--patches/task-curr-export.patch12
2 files changed, 25 insertions, 0 deletions
diff --git a/patches/16kstack-x86_64.patch b/patches/16kstack-x86_64.patch
new file mode 100644
index 000000000..330cedddf
--- /dev/null
+++ b/patches/16kstack-x86_64.patch
@@ -0,0 +1,13 @@
+Index: linux+rh+chaos/include/asm-x86_64/page.h
+===================================================================
+--- linux+rh+chaos.orig/include/asm-x86_64/page.h
++++ linux+rh+chaos/include/asm-x86_64/page.h
+@@ -10,7 +10,7 @@
+ #define PAGE_MASK (~(PAGE_SIZE-1))
+ #define PHYSICAL_PAGE_MASK (~(PAGE_SIZE-1) & __PHYSICAL_MASK)
+
+-#define THREAD_ORDER 1
++#define THREAD_ORDER 2
+ #define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER)
+ #define CURRENT_MASK (~(THREAD_SIZE-1))
+
diff --git a/patches/task-curr-export.patch b/patches/task-curr-export.patch
new file mode 100644
index 000000000..53007d2ba
--- /dev/null
+++ b/patches/task-curr-export.patch
@@ -0,0 +1,12 @@
+Index: linux+rh+chaos/kernel/sched.c
+===================================================================
+--- linux+rh+chaos.orig/kernel/sched.c
++++ linux+rh+chaos/kernel/sched.c
+@@ -1038,6 +1038,7 @@ inline int task_curr(const struct task_s
+ {
+ return cpu_curr(task_cpu(p)) == p;
+ }
++EXPORT_SYMBOL(task_curr);
+
+ /* Used instead of source_load when we know the type == 0 */
+ unsigned long weighted_cpuload(const int cpu)