Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
IP Products
Processors
Jump...
Cancel
Processors
Classic processors forum
Writing ARM application containing both C code and assemply code
Blogs
Forums
Videos & Files
Help
Jump...
Cancel
New
State
Accepted Answer
+1
person also asked this
people also asked this
Replies
10 replies
Subscribers
2 subscribers
Views
4837 views
Users
0 members are here
Arm7
Address
compiler
program
Interrupt
Related
Writing ARM application containing both C code and assemply code
Offline
Pavan Kumar
over 7 years ago
Note: This was originally posted on 6th September 2007 at
http://forums.arm.com
Hi I need to put one ARM instruction in ARM application written in C.
Basically my application looks like
void main(void)
{
................
................
enable_IRQ();
program_dma(); /* programs DMA with st address, dest addr, xfer length etc and enables DMA*/
/* Here I want to put a ARM instruction(assembly) */
..............
}
Extra information:
After enabling DMA, I want to execute WaitForInterrupt instruction by doing
MCR p15, 0, Rd, c7, c0, 4
Since this is C code I cant directly put that instruction( I guess).
Can you tell me how can I put that MCR instruction in my C code
Top replies
Offline
Simon Craske
over 7 years ago
+1
verified
Note: This was originally posted on 10th September 2007 at http://forums.arm.com Pavan, ARMCC also provides "embedded" assembler which allows simple creation of assembler functions within C source code;...
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Not Answered
Platform Security Architecture (PSA) and Azure Sphere
0
Platform Security Architecture (PSA)
azure
Internet of Things (IoT)
757
views
0
replies
Started
8 months ago
by
techguyz
Answered
Provision to get out of BKPT instruction
+1
4663
views
5
replies
Latest
8 months ago
by
LULIA
Answered
How to specify virtual Address for pl011 uart in linux kernel
0
APB Peripherals
Arm11
PrimeCell UART (PL011)
Interrupt
12426
views
10
replies
Latest
10 months ago
by
Brayden
Not Answered
Needs explanation of an assembly snippet
0
1584
views
1
reply
Latest
over 1 year ago
by
42Bastian Schick
Not Answered
2515 CAN controller with rpi3
0
1665
views
0
replies
Started
over 1 year ago
by
Tejadeep
<
>
View all questions in Classic processors forum