Google
  Web www.spinics.net

Read CCNT on PXA255

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi, I want to read CCNT cycle clock register of PXA255. But I am
getting problem accessing these registers. In a sample C program when
I try to read CCNT and PMNC via assembly instructions (given below) as
mentioned in manual of PXA, it reports illegle instruction. These
instuction are: for PMNC: __asm__volatile__("mrc p14, 0, %0, c0, c0,
0" : "=r" (val)); for CCNT __asm__volatile__("mrc p14, 0, %0, c1, c0,
0" : "=r" (val)); I am using arm-linux-gcc 3.3.2 to successfully
compile this program. The run time error when this program is run are
given as: for PMNC: e5933000 e5933000 e3530000 1a000002 (ee103e10)
Illegle instruction; for CCNT: e5933000 e5933000 e3530000 1a000002
(ee193f1e) Illegale instruction; Can any one please guide me how to
fix this. Junaid

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

[Site Home]     [Linux ARM Kernel]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Tools]     [DDR & Rambus]     [Monitors]

Add to Google Google PageRank Checking tool