diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 07:32:57 -0400 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2009-07-24 07:32:57 -0400 |
commit | 8b592783a2e8b7721a99730bd549aab5208f36af (patch) | |
tree | 468636a17d31f6a29287240c63234e739eabf666 /arch/arm/lib/getuser.S | |
parent | 347c8b70b1d5256e445e54e736f88d21877616cf (diff) |
Thumb-2: Implement the unified arch/arm/lib functions
This patch adds the ARM/Thumb-2 unified support for the arch/arm/lib/*
files.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/lib/getuser.S')
-rw-r--r-- | arch/arm/lib/getuser.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/lib/getuser.S b/arch/arm/lib/getuser.S index 6763088b7607..a1814d927122 100644 --- a/arch/arm/lib/getuser.S +++ b/arch/arm/lib/getuser.S | |||
@@ -36,8 +36,13 @@ ENTRY(__get_user_1) | |||
36 | ENDPROC(__get_user_1) | 36 | ENDPROC(__get_user_1) |
37 | 37 | ||
38 | ENTRY(__get_user_2) | 38 | ENTRY(__get_user_2) |
39 | #ifdef CONFIG_THUMB2_KERNEL | ||
40 | 2: ldrbt r2, [r0] | ||
41 | 3: ldrbt r3, [r0, #1] | ||
42 | #else | ||
39 | 2: ldrbt r2, [r0], #1 | 43 | 2: ldrbt r2, [r0], #1 |
40 | 3: ldrbt r3, [r0] | 44 | 3: ldrbt r3, [r0] |
45 | #endif | ||
41 | #ifndef __ARMEB__ | 46 | #ifndef __ARMEB__ |
42 | orr r2, r2, r3, lsl #8 | 47 | orr r2, r2, r3, lsl #8 |
43 | #else | 48 | #else |