diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2008-04-18 17:43:06 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2008-04-18 17:43:06 -0400 |
commit | d7f864be8323e5394040e2877594645b0e7da85d (patch) | |
tree | 55ecf960706be9a4ee0c7804c57c7f5d30e0f1f7 /include/asm-arm | |
parent | 05dda977f2574c3341abef9b74c27d2b362e1e3a (diff) |
ARMv7: Add support for the ThumbEE state saving/restoring
This patch adds the detection and handling of the ThumbEE extension on
ARMv7 CPUs.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'include/asm-arm')
-rw-r--r-- | include/asm-arm/hwcap.h | 1 | ||||
-rw-r--r-- | include/asm-arm/thread_info.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-arm/hwcap.h b/include/asm-arm/hwcap.h index 01a1391d3014..81f4c899a555 100644 --- a/include/asm-arm/hwcap.h +++ b/include/asm-arm/hwcap.h | |||
@@ -15,6 +15,7 @@ | |||
15 | #define HWCAP_JAVA 256 | 15 | #define HWCAP_JAVA 256 |
16 | #define HWCAP_IWMMXT 512 | 16 | #define HWCAP_IWMMXT 512 |
17 | #define HWCAP_CRUNCH 1024 | 17 | #define HWCAP_CRUNCH 1024 |
18 | #define HWCAP_THUMBEE 2048 | ||
18 | 19 | ||
19 | #if defined(__KERNEL__) && !defined(__ASSEMBLY__) | 20 | #if defined(__KERNEL__) && !defined(__ASSEMBLY__) |
20 | /* | 21 | /* |
diff --git a/include/asm-arm/thread_info.h b/include/asm-arm/thread_info.h index 41784357a204..f5a664786311 100644 --- a/include/asm-arm/thread_info.h +++ b/include/asm-arm/thread_info.h | |||
@@ -62,6 +62,9 @@ struct thread_info { | |||
62 | struct crunch_state crunchstate; | 62 | struct crunch_state crunchstate; |
63 | union fp_state fpstate __attribute__((aligned(8))); | 63 | union fp_state fpstate __attribute__((aligned(8))); |
64 | union vfp_state vfpstate; | 64 | union vfp_state vfpstate; |
65 | #ifdef CONFIG_ARM_THUMBEE | ||
66 | unsigned long thumbee_state; /* ThumbEE Handler Base register */ | ||
67 | #endif | ||
65 | struct restart_block restart_block; | 68 | struct restart_block restart_block; |
66 | }; | 69 | }; |
67 | 70 | ||