Hi,
That is a syntax error. So, the code should be changed as following.
>>> ldr r12, [r8, #4] >>> eors r12, r12, #PSR_MODE_SVC >>> beq invoke_hypercall
------- Original Message ------- Sender : Shreyansh Jain Date : 2011-06-06 15:22 (GMT+09:00) Title : Re: [XenARM] Problem with entry.S, error on instruction 'eors' To : Li Haifeng Cc : xen-arm@xxxxxxxxxxxxxxxxxxx
Hi,
Thanks a lot for the link - will try with this tool-chain as well.
- Shreyansh Jain
On Sat, Jun 4, 2011 at 7:18 PM, Li Haifeng wrote: > Hi, it works well with the cross-chain gcc 4.1.1. > > http://arm.cirrus.com/files/tools/arm-linux-gcc-4.1.1-920t.tar.bz2 > > On Wed, Jun 1, 2011 at 6:06 PM, Shreyansh Jain > wrote: >> >> Hi List, >> >> I recently started working/exploring the XEN on ARM Project. As an >> initial step I tried to compile the source code of xen-arm (extracted >> from >> [http://wiki.xen.org/xenwiki/XenARM?action="">>> For this purpose, I have used the gcc-arm (3.4.4) cross-compiler as >> suggested by the >> >> [http://wiki.xen.org/xenwiki/XenARM?action="">>> document. >> >> Following was the error which I observed: >> >> ---8<--- >> ... >> traps.c: In function `fixup_exception': >> traps.c:56: warning: assignment makes pointer from integer without a cast >> entry.S: Assembler messages: >> entry.S:368: Error: register expected, not '#0x00000013' -- `eors >> r12,#0x00000013' >> make[4]: *** [entry.o] Error 1 >> ... >> ---8<--- >> >> I changed the compiler by downloading a gcc-arm version 3.4.3 and the >> error persisted. On further searching (Google), I noticed that the >> usage of the assembly instruction in entry.S: >> >> ---8<--- >> ... >> 367 ? ? ? ? ldr ? ? r12, [r8, #4] >> 368 ? ? ? ? eors ? ?r12, #PSR_MODE_SVC ? <===== >> 369 ? ? ? ? beq ? ? invoke_hypercall >> ... >> ---8<--- >> >> is not as expected by the linker (ld). It expects taht the first and >> second argument of the code be a register. I have repeatedly checked >> that I am working on the exact source code as extracted from the >> xen-arm source downloaded from the xen-arm wiki. >> >> Is this a known issue or is it something which I am observing due to >> some possible configuration issue at my end. Any pointers/hints would >> be sincerely appreciated. Do mail across in case any further >> information is required. >> >> Thank you. >> >> - >> Shreyansh Jain >> >> _______________________________________________ >> Xen-arm mailing list >> Xen-arm@xxxxxxxxxxxxxxxxxxx >> http://lists.xensource.com/mailman/listinfo/xen-arm > > > > -- > Li Haifeng > Laboratory of Service Computing Technology and System > Home page:http://tek-life.org > >
_______________________________________________ Xen-arm mailing list Xen-arm@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/mailman/listinfo/xen-arm
|
Jaemin Ryu
S/W Platform Lab
DMC Research Center
Samsung Electronics Co., Ltd.
TEL : +82-31-280-9747 MOBILE: +82-10-3324-1898 E-mail : jm77.ryu@xxxxxxxxxxx
|
_______________________________________________
Xen-arm mailing list
Xen-arm@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-arm
|