Commit 4abd2225 authored by danh-arm's avatar danh-arm Committed by GitHub
Browse files

Merge pull request #800 from masahir0y/ifdef

Correct preprocessor conditionals
parents e02be207 6af03f9c
...@@ -82,7 +82,7 @@ void plat_rockchip_gic_driver_init(void) ...@@ -82,7 +82,7 @@ void plat_rockchip_gic_driver_init(void)
* can use GIC system registers to manage interrupts and does * can use GIC system registers to manage interrupts and does
* not need GIC interface base addresses to be configured. * not need GIC interface base addresses to be configured.
*/ */
#if IMAGE_BL31 #ifdef IMAGE_BL31
gicv3_driver_init(&rockchip_gic_data); gicv3_driver_init(&rockchip_gic_data);
#endif #endif
} }
......
...@@ -50,13 +50,13 @@ ...@@ -50,13 +50,13 @@
/* Size of cacheable stacks */ /* Size of cacheable stacks */
#if DEBUG_XLAT_TABLE #if DEBUG_XLAT_TABLE
#define PLATFORM_STACK_SIZE 0x800 #define PLATFORM_STACK_SIZE 0x800
#elif IMAGE_BL1 #elif defined(IMAGE_BL1)
#define PLATFORM_STACK_SIZE 0x440 #define PLATFORM_STACK_SIZE 0x440
#elif IMAGE_BL2 #elif defined(IMAGE_BL2)
#define PLATFORM_STACK_SIZE 0x400 #define PLATFORM_STACK_SIZE 0x400
#elif IMAGE_BL31 #elif defined(IMAGE_BL31)
#define PLATFORM_STACK_SIZE 0x800 #define PLATFORM_STACK_SIZE 0x800
#elif IMAGE_BL32 #elif defined(IMAGE_BL32)
#define PLATFORM_STACK_SIZE 0x440 #define PLATFORM_STACK_SIZE 0x440
#endif #endif
......
...@@ -50,13 +50,13 @@ ...@@ -50,13 +50,13 @@
/* Size of cacheable stacks */ /* Size of cacheable stacks */
#if DEBUG_XLAT_TABLE #if DEBUG_XLAT_TABLE
#define PLATFORM_STACK_SIZE 0x800 #define PLATFORM_STACK_SIZE 0x800
#elif IMAGE_BL1 #elif defined(IMAGE_BL1)
#define PLATFORM_STACK_SIZE 0x440 #define PLATFORM_STACK_SIZE 0x440
#elif IMAGE_BL2 #elif defined(IMAGE_BL2)
#define PLATFORM_STACK_SIZE 0x400 #define PLATFORM_STACK_SIZE 0x400
#elif IMAGE_BL31 #elif defined(IMAGE_BL31)
#define PLATFORM_STACK_SIZE 0x800 #define PLATFORM_STACK_SIZE 0x800
#elif IMAGE_BL32 #elif defined(IMAGE_BL32)
#define PLATFORM_STACK_SIZE 0x440 #define PLATFORM_STACK_SIZE 0x440
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment