rtl8195am - fix ARMC6 guards

Fix ARMC6 guard typo introduced in commit 4f3f0cc9cc (Make Realtek link)

While at it, remove redundant ISR_STACK_SIZE assignment for ARMCC.

Signed-off-by: Tony Wu <tonywu@realtek.com>
pull/5232/head
Tony Wu 2017-10-02 14:16:34 +08:00
parent 5e36d32d86
commit d0de5f792e
1 changed files with 2 additions and 3 deletions

View File

@ -20,7 +20,7 @@
#include "rtl8195a.h"
#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) || (__ARMCC_VERSION >= 6010050))
#if defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Base[];
extern uint32_t Image$$ARM_LIB_STACK$$ZI$$Length[];
#define ISR_STACK_START (unsigned char *)(Image$$ARM_LIB_STACK$$ZI$$Base)
@ -33,8 +33,7 @@
#define INITIAL_SP (__StackTop)
#endif
#if defined(__CC_ARM) || defined(__GNUC__)
#if defined(__GNUC__)
#ifndef ISR_STACK_SIZE
#define ISR_STACK_SIZE (0x1000)
#endif