Hi,
I am working on 5213evb Freescale
evaluation board. I am using gcc compiler for the same.
I my program I am using inline assembly
program for reading status register value.
But is giving some error. Can any one
help me regarding this.
My code is
u8_t
read_interrupt(void)
{
u8_t i;
{
u8_t i;
__asm("move.w %sr,
%d0\n"
"andi.w #0x0700, %d0" : "=r" (i)); //* return value
return i;
}
"andi.w #0x0700, %d0" : "=r" (i)); //* return value
return i;
}
I got the error as:
../../boot/boot.c:502: error: invalid
'asm': operand number missing after %-letter
../../boot/boot.c:502: error: invalid 'asm': operand number missing after %-letter
../../boot/boot.c:502: error: invalid 'asm': operand number missing after %-letter
Whether gcc complier for coldfire supports
the inline assembler with "output operands" & "input operands"?
With Regards,
Pradeep
Kumar.B
From: Pradeep Kumar Bola, TLS,Chennai
Sent: Fri 2/2/2007 12:27 PM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: Enable and disable interrupt for mcf5213
Hi,
I am working on 5213eb with GCC compiler.
For disabling the interrupt I am loading SR
value with '7' and for enabling I am loading the SR value with the old value
that I read the SR value before disabling.
I am using IPL value for disabling and
enabling.
Can any one help me whether this is the
proper way to enable or disable the interrupt? If not how can I disable ad
enable interrupt by using C or assembly program.
With Regards,
Pradeep
Kumar.B
DISCLAIMER: -----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. -----------------------------------------------------------------------------------------------------------------------
_______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
