diff options
| author | Randy Dunlap <rddunlap@org.rmk.(none)> | 2004-04-12 20:03:14 +0100 |
|---|---|---|
| committer | Russell King <rmk@flint.arm.linux.org.uk> | 2004-04-12 20:03:14 +0100 |
| commit | f2eb250f07ba4695c2474cb8b6edbf64b5457d65 (patch) | |
| tree | 7651f4801cf6a0e8c5ea35d994b23f1287b03efb | |
| parent | 46d322c90c2b2221872b5e88f458b06f6643caf2 (diff) | |
[ARM] use errno #defines in assembly
Patch from: Randy Dunlap
From: Danilo Piazzalunga
Some assembly code (on various archs) either
1. uses hardcoded errno numbers instead of the canonical macro
names, or
2. defines them locally, instead of including the appropriate
header (while including other headers).
This patch "fixes" such usage in
- getuser.S for arm
- putuser.S for arm
| -rw-r--r-- | arch/arm/lib/getuser.S | 3 | ||||
| -rw-r--r-- | arch/arm/lib/putuser.S | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/lib/getuser.S b/arch/arm/lib/getuser.S index fb60cc05d2ec..cf3920459c96 100644 --- a/arch/arm/lib/getuser.S +++ b/arch/arm/lib/getuser.S @@ -28,6 +28,7 @@ */ #include <asm/constants.h> #include <asm/thread_info.h> +#include <asm/errno.h> .global __get_user_1 __get_user_1: @@ -89,7 +90,7 @@ __get_user_bad_8: mov r2, #0 __get_user_bad: mov r1, #0 - mov r0, #-14 + mov r0, #-EFAULT mov pc, lr .section __ex_table, "a" diff --git a/arch/arm/lib/putuser.S b/arch/arm/lib/putuser.S index 9dc9a89cea49..293de2d2cde7 100644 --- a/arch/arm/lib/putuser.S +++ b/arch/arm/lib/putuser.S @@ -28,6 +28,7 @@ */ #include <asm/constants.h> #include <asm/thread_info.h> +#include <asm/errno.h> .global __put_user_1 __put_user_1: @@ -87,7 +88,7 @@ __put_user_8: /* fall through */ __put_user_bad: - mov r0, #-14 + mov r0, #-EFAULT mov pc, lr .section __ex_table, "a" |
