Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Hi, Please try to compile the next code.
// test_ctl.S
rdctl r5,ctl7
rdctl r6,ctl12
The names 'exception' and 'badaddr' are alias of control registers 'ctl7' and 'ctl12'. Kazu --- Quote End --- That seemed to compile:
$ nios2-linux-uclibc-gcc -c ctl.S
developer@1604:~/altera/nios2-linux/uClinux-dist$ ls
auto.conf config Documentation lib README test.S
autoconf.h config.arch entry.txt linux-2.6.x release_notes testsuites
bfin_patch COPYING freeswan MAKEALL romfs tools
bin ctl.o images Makefile SOURCE user
ccache ctl.S Kconfig openswan staging vendors