From 99be2bc4ff25ad8b322695ab3fca9f5350b7ae3a Mon Sep 17 00:00:00 2001 From: Richard Earnshaw Date: Fri, 20 Sep 2013 14:23:41 +0000 Subject: 2013-09-20 Matthew Gretton-Dann Ramana Radhakrishnan Greta Yorsh * arm/Makefile.in: Add support for cpu-init directory and add elf-aprofile-ve.specs. * arm/configure.in: Likewise. * arm/configure: Regenerate. * arm/cpu-init: New directory. * arm/cpu-init/Makefile.in: New file. * arm/cpu-init/rdimon-aem.S: Likewise. * arm/crt0.S: Call _rdimon_init_hook * arm/elf-aprofile-ve.specs: New file. --- libgloss/arm/crt0.S | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libgloss/arm/crt0.S') diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S index 86ee2cd7d..17e3fb6c9 100644 --- a/libgloss/arm/crt0.S +++ b/libgloss/arm/crt0.S @@ -77,6 +77,12 @@ .fnstart #endif +/* The init hook does not use the stack and is called before the stack has been set up. */ +#ifdef ARM_RDI_MONITOR + bl _rdimon_hw_init_hook + .weak FUNCTION (_rdimon_hw_init_hook) +#endif + /* Start by setting up a stack */ #ifdef ARM_RDP_MONITOR /* Issue Demon SWI to read stack info */ -- cgit v1.2.3