mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 04:26:19 -04:00
API: Provide syscall entry point for the ARM architecture.
Signed-off-by: Rafal Czubak <rcz@semihalf.com> Acked-by: Rafal Jaworowski <raj@semihalf.com>
This commit is contained in:
parent
b84d7d8f1e
commit
7fb6c4f9b0
@ -23,10 +23,9 @@
|
|||||||
ifeq ($(ARCH),ppc)
|
ifeq ($(ARCH),ppc)
|
||||||
LOAD_ADDR = 0x40000
|
LOAD_ADDR = 0x40000
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(ARCH),arm)
|
||||||
#ifeq ($(ARCH),arm)
|
LOAD_ADDR = 0x1000000
|
||||||
#LOAD_ADDR = 0xc100000
|
endif
|
||||||
#endif
|
|
||||||
|
|
||||||
include $(TOPDIR)/config.mk
|
include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
#if defined(CONFIG_PPC)
|
#if defined(CONFIG_PPC)
|
||||||
|
|
||||||
.text
|
.text
|
||||||
|
|
||||||
.globl _start
|
.globl _start
|
||||||
_start:
|
_start:
|
||||||
lis %r11, search_hint@ha
|
lis %r11, search_hint@ha
|
||||||
@ -42,6 +41,22 @@ syscall:
|
|||||||
lwz %r11, 0(%r11)
|
lwz %r11, 0(%r11)
|
||||||
mtctr %r11
|
mtctr %r11
|
||||||
bctr
|
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
|
#else
|
||||||
#error No support for this arch!
|
#error No support for this arch!
|
||||||
#endif
|
#endif
|
||||||
|
@ -416,6 +416,11 @@ void start_armboot (void)
|
|||||||
|
|
||||||
jumptable_init ();
|
jumptable_init ();
|
||||||
|
|
||||||
|
#if defined(CONFIG_API)
|
||||||
|
/* Initialize API */
|
||||||
|
api_init ();
|
||||||
|
#endif
|
||||||
|
|
||||||
console_init_r (); /* fully init console as a device */
|
console_init_r (); /* fully init console as a device */
|
||||||
|
|
||||||
#if defined(CONFIG_MISC_INIT_R)
|
#if defined(CONFIG_MISC_INIT_R)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user