API: Provide syscall entry point implementation for the ARM architecture.
PATCH 1/1 API: Provide syscall entry point implementation for the ARM architecture.
(Tested on ARM920-based EP93xx system)
Signed-off-by Rafal Czubak <[email protected]>
Acked-by Rafal Jaworowski <[email protected]>
--- api_examples/Makefile | 6 +++--- api_examples/crt0.S | 17 +++++++++++++++-- lib_arm/board.c | 5 +++++ 3 files changed, 23 insertions(+), 5 deletions(-)
api_examples/Makefile +3 -3
@@ -24,9 +24,9 @@ ifeq ($(ARCH),ppc) LOAD_ADDR = 0x40000 endif -#ifeq ($(ARCH),arm) -#LOAD_ADDR = 0xc100000 -#endif +ifeq ($(ARCH),arm) +LOAD_ADDR = 0x1000000 +endif include $(TOPDIR)/config.mk
api_examples/crt0.S +15 -2
@@ -1,5 +1,5 @@ /* - * (C) Copyright 2007 Semihalf + * (C) Copyright 2007-2008 Semihalf * * Written by: Rafal Jaworowski <[email protected]> *
@@ -25,7 +25,6 @@ #if defined(CONFIG_PPC) .text - .globl _start _start: /* Store global data ptr as a hint for U-Boot address range */
@@ -41,6 +40,20 @@ syscall: lwz %r11, 0(%r11) mtctr %r11 bctr + +#elif defined(CONFIG_ARM) + .text + .globl _start +_start: + ldr ip, =gd_ptr + str r8, [ip] + b main + + .globl syscall +syscall: + ldr ip, =syscall_ptr + ldr pc, [ip] + #else #error No support for this arch! #endif
lib_arm/board.c +5 -0
@@ -431,6 +431,11 @@ void start_armboot (void)jumptable_init (); +#if defined(CONFIG_API ) +/* Initialize API */ +api_init (); +#endif +console_init_r ();/* fully init console as a device */ #if defined(CONFIG_MISC_INIT_R )
Signature · 1 line
1.5.2.2
PATCH 1/1 API: Provide syscall entry point implementation for the ARM architecture.
Dear Rafal Jaworowski,
Quoted 9 lines · In message <[email protected]> you wrote:
(Tested on ARM920-based EP93xx system)
Signed-off-by Rafal Czubak <[email protected]>Acked-by Rafal Jaworowski <[email protected]>--- api_examples/Makefile | 6 +++--- api_examples/crt0.S | 17 +++++++++++++++-- lib_arm/board.c | 5 +++++ 3 files changed, 23 insertions(+), 5 deletions(-)
Applying API: Provide syscall entry point implementation for the ARM architecture.
error: patch failed: api_examples/crt0.S:25
error: api_examples/crt0.S: patch does not apply
fatal: sha1 information is lacking or useless (api_examples/crt0.S). Repository lacks necessary blobs to fall back on 3-way merge. Cannot fall back to three-way merge.
Patch failed at 0001.
Sorry, does not apply.
Please rebase and resubmit.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "God is a comedian playing to an audience too afraid to laugh." - Voltaire