From: Mike Frysinger Date: Thu, 7 Aug 2008 17:21:11 +0000 (-0400) Subject: Blackfin: add defines to describe active bootrom behavior X-Git-Tag: v2009.03-rc1~147^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=154502fe0796f3b7a4698378c5d2080ae28a9782;p=platform%2Fkernel%2Fu-boot.git Blackfin: add defines to describe active bootrom behavior Signed-off-by: Mike Frysinger --- diff --git a/include/asm-blackfin/mach-common/bits/bootrom.h b/include/asm-blackfin/mach-common/bits/bootrom.h index 6cdaa4f894..bf661f0c10 100644 --- a/include/asm-blackfin/mach-common/bits/bootrom.h +++ b/include/asm-blackfin/mach-common/bits/bootrom.h @@ -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 */ @@ -100,6 +102,9 @@ #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 @@ -109,6 +114,12 @@ #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;