sh: Consolidate segment modifiers across mmu/nommu systems.

Previous thread: sh: Consolidate addr/access_ok across mmu/nommu on 32bit. by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:06 am. (1 message)

Next thread: sh: Initial ELF FDPIC support. by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:06 am. (1 message)
From: Linux Kernel Mailing List
Date: Monday, July 28, 2008 - 10:06 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=02f7e6...
Commit:     02f7e627f9248a478cf790112a07ae2c612b895a
Parent:     3787aa112c653b34b6f901b2eaae2b62f9582569
Author:     Paul Mundt <lethal@linux-sh.org>
AuthorDate: Tue Jun 3 18:48:54 2008 +0900
Committer:  Paul Mundt <lethal@linux-sh.org>
CommitDate: Mon Jul 28 18:10:28 2008 +0900

    sh: Consolidate segment modifiers across mmu/nommu systems.
    
    This moves get_fs/set_fs() and friends in to asm/segment.h. The
    mm_segment_t definition is likewise consolidated from the _32/_64 split.
    
    This is prepatory groundwork for using the generic address space limit
    and verification routines across mmu/nommu configs.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
---
 include/asm-sh/processor.h    |    1 +
 include/asm-sh/processor_32.h |    4 ----
 include/asm-sh/processor_64.h |    4 ----
 include/asm-sh/segment.h      |   30 +++++++++++++++++++++++++++++-
 include/asm-sh/uaccess_32.h   |   33 +++------------------------------
 5 files changed, 33 insertions(+), 39 deletions(-)

diff --git a/include/asm-sh/processor.h b/include/asm-sh/processor.h
index b7c7ce8..15d9f92 100644
--- a/include/asm-sh/processor.h
+++ b/include/asm-sh/processor.h
@@ -2,6 +2,7 @@
 #define __ASM_SH_PROCESSOR_H
 
 #include <asm/cpu-features.h>
+#include <asm/segment.h>
 
 #ifndef __ASSEMBLY__
 /*
diff --git a/include/asm-sh/processor_32.h b/include/asm-sh/processor_32.h
index c09305d..81628f1 100644
--- a/include/asm-sh/processor_32.h
+++ b/include/asm-sh/processor_32.h
@@ -113,10 +113,6 @@ struct thread_struct {
 	union sh_fpu_union fpu;
 };
 
-typedef struct {
-	unsigned long seg;
-} mm_segment_t;
-
 /* Count of active tasks with UBC settings */
 extern int ubc_usercnt;
 
diff --git a/include/asm-sh/processor_64.h b/include/asm-sh/processor_64.h
index 88a2edf..fc7fc68 100644
--- a/include/asm-sh/processor_64.h
+++ ...
Previous thread: sh: Consolidate addr/access_ok across mmu/nommu on 32bit. by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:06 am. (1 message)

Next thread: sh: Initial ELF FDPIC support. by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:06 am. (1 message)