|ARM Technical Support Knowledge Articles|
Applies to: RealView Linker
Information in this article applies to:
I have written an interrupt handler in assembly language using the RealView assembler. In this interrupt handler, I am calling another routine that is written in C. When I link my program, I receive the following warning:
Warning: L6306W: '~PRES8' section arm_isr.o(asm_irq) should not
use the address of 'REQ8' function (c_func).
What is wrong?
All C code generated by the RealView compiler assumes that stack allocation is aligned on 8-byte boundaries. You must ensure that the assembler interrupt handler has an 8-byte aligned stack by specifying the PRESERVE8 directive at the beginning of your assembly file. For example,
. AREA irq_asm, CODE, READONLY
Article last edited on: 2007-02-02 02:14:13
Did you find this article helpful? Yes No
How can we improve this article?