Blackfin: add defines to describe active bootrom behavior
authorMike Frysinger <vapier@gentoo.org>
Thu, 7 Aug 2008 17:21:11 +0000 (13:21 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 28 Jan 2009 18:26:09 +0000 (13:26 -0500)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
include/asm-blackfin/mach-common/bits/bootrom.h

index 6cdaa4f894429b43e0940cebf8ba3f6841b7240c..bf661f0c10f047b0a1a6bdf9253e0403201001ff 100644 (file)
@@ -88,6 +88,8 @@
 #define _BOOTROM_REV                   0xEF000040
 #define _BOOTROM_SESR                  0xEF001000
 
+#define BOOTROM_FOLLOWS_C_ABI 1
+
 #define BOOTROM_CAPS_ADI_BOOT_STRUCTS 1
 
 /* Not available on initial BF54x or BF52x */
 
 #endif
 
+#ifndef BOOTROM_FOLLOWS_C_ABI
+#define BOOTROM_FOLLOWS_C_ABI 0
+#endif
 #ifndef BOOTROM_CAPS_ADI_BOOT_STRUCTS
 #define BOOTROM_CAPS_ADI_BOOT_STRUCTS 0
 #endif
 
 #ifndef __ASSEMBLY__
 
+#if BOOTROM_FOLLOWS_C_ABI
+# define BOOTROM_CALLED_FUNC_ATTR
+#else
+# define BOOTROM_CALLED_FUNC_ATTR __attribute__((saveall))
+#endif
+
 /* Structures for the syscontrol() function */
 typedef struct ADI_SYSCTRL_VALUES {
        uint16_t uwVrCtl;