有' />个' />:
[Error ea5004] "..\..\linux-2.6.x\' />\asm/mach-common/context.S":35 Syntax Error in :
.macro save_context_with_' />errupts
syntax error is at or near text 'save_context_with_' />errupts'.
Attempting error recovery by ignoring text until the ';'
其指向' />' />代码为:
/*
* Code to save processor context.
* We even save the register which are preserved by a function call
* - r4, r5, r6, r7, p3, p4, p5
*/
.macro save_context_with_' />errupts
……………….
/* Switch to other method of keeping ' />errupts disabled. */
#' />def CONFIG_DEBUG_HWERR
r0 = 0x3f;
sti r0;
#' />
cli r0;
#end' />
………………………
.endm
这里有两个问题' />首先是vdsp' />汇编器不支持.macro' />只能用#' />来替代' />第 2个是在里面出现了#' />def这样' />条件判断' />只能将移到宏定义' />外面' />修改后' />代码为:
#' />def CONFIG_DEBUG_HWERR
#' /> save_context_with_' />errupts \
……………….. \
/* Switch to other method of keeping ' />errupts disabled. */ \
r0 = 0x3f; \
sti r0; \
………………. \
//.endm
#' />
#' /> save_context_with_' />errupts \
……………………….. \
/* Switch to other method of keeping ' />errupts disabled. */ \
cli r0; \
……………………….. \
//.endm
#end' /> // CONFIG_DEBUG_HWERR
其它宏' />修改和此类似' />
最新评论