diff options
author | Rafal Jaworowski <raj@semihalf.com> | 2009-01-23 13:27:16 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-02-18 00:39:41 +0100 |
commit | 7fb6c4f9b06c5539043c8bfc6565710b8090841d (patch) | |
tree | f9be70847a132903f6b2b4bc29cb7ef387359c3b /api_examples/crt0.S | |
parent | b84d7d8f1e1066f810866304a16a3583f88e7c98 (diff) | |
download | u-boot-imx-7fb6c4f9b06c5539043c8bfc6565710b8090841d.zip u-boot-imx-7fb6c4f9b06c5539043c8bfc6565710b8090841d.tar.gz u-boot-imx-7fb6c4f9b06c5539043c8bfc6565710b8090841d.tar.bz2 |
API: Provide syscall entry point for the ARM architecture.
Signed-off-by: Rafal Czubak <rcz@semihalf.com>
Acked-by: Rafal Jaworowski <raj@semihalf.com>
Diffstat (limited to 'api_examples/crt0.S')
-rw-r--r-- | api_examples/crt0.S | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/api_examples/crt0.S b/api_examples/crt0.S index 3129a07..6daf127 100644 --- a/api_examples/crt0.S +++ b/api_examples/crt0.S @@ -26,7 +26,6 @@ #if defined(CONFIG_PPC) .text - .globl _start _start: lis %r11, search_hint@ha @@ -42,6 +41,22 @@ syscall: lwz %r11, 0(%r11) mtctr %r11 bctr + +#elif defined(CONFIG_ARM) + + .text + .globl _start +_start: + ldr ip, =search_hint + str sp, [ip] + b main + + + .globl syscall +syscall: + ldr ip, =syscall_ptr + ldr pc, [ip] + #else #error No support for this arch! #endif |